mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Add tests for varchar() and combinations of string types.
This commit is contained in:
23
src/test/regress/sql/strings.sql
Normal file
23
src/test/regress/sql/strings.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
--
|
||||
-- Test various data entry syntaxes.
|
||||
--
|
||||
|
||||
-- SQL92 string continuation syntax
|
||||
SELECT 'first line'
|
||||
' - next line'
|
||||
' - third line'
|
||||
AS "Three lines to one";
|
||||
|
||||
-- illegal string continuation syntax
|
||||
SELECT 'first line'
|
||||
' - next line' /* this comment is not allowed here */
|
||||
' - third line';
|
||||
|
||||
--
|
||||
-- test conversions between various string types
|
||||
--
|
||||
|
||||
SELECT text(f1) FROM CHAR_TBL;
|
||||
|
||||
SELECT text(f1) FROM VARCHAR_TBL;
|
||||
|
||||
Reference in New Issue
Block a user