mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
449 B
18 lines
449 B
|
29 years ago
|
-- *************testing built-in type text ****************
|
||
|
|
|
||
|
|
--
|
||
|
|
-- adt operators in the target list
|
||
|
|
--
|
||
|
|
-- fixed-length by reference
|
||
|
|
SELECT 'char 16 string'::char16 = 'char 16 string '::char16 AS false;
|
||
|
|
|
||
|
|
-- fixed-length by value
|
||
|
|
SELECT 'c'::char = 'c'::char AS true;
|
||
|
|
|
||
|
|
-- variable-length
|
||
|
|
SELECT 'this is a text string'::text = 'this is a text string'::text AS true;
|
||
|
|
|
||
|
|
SELECT 'this is a text string'::text = 'this is a text strin'::text AS false;
|
||
|
|
|
||
|
|
|