mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-13 17:19:43 +02:00
f54668d617
All of these tests have been completely inspected and give correct results.
26 lines
476 B
Plaintext
26 lines
476 B
Plaintext
--
|
|
-- TEXT
|
|
--
|
|
SELECT text 'this is a text string' = text 'this is a text string' AS true;
|
|
true
|
|
------
|
|
t
|
|
(1 row)
|
|
|
|
SELECT text 'this is a text string' = text 'this is a text strin' AS false;
|
|
false
|
|
-------
|
|
f
|
|
(1 row)
|
|
|
|
CREATE TABLE TEXT_TBL (f1 text);
|
|
INSERT INTO TEXT_TBL VALUES ('doh!');
|
|
INSERT INTO TEXT_TBL VALUES ('hi de ho neighbor');
|
|
SELECT '' AS two, * FROM TEXT_TBL;
|
|
two | f1
|
|
-----+-------------------
|
|
| doh!
|
|
| hi de ho neighbor
|
|
(2 rows)
|
|
|