mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Accept 'on' and 'off' as input for boolean data type, unifying the syntax
that the data type and GUC accepts. ITAGAKI Takahiro
This commit is contained in:
@@ -40,6 +40,18 @@ SELECT bool 'no' AS false;
|
||||
|
||||
SELECT bool 'nay' AS error;
|
||||
|
||||
SELECT bool 'on' AS true;
|
||||
|
||||
SELECT bool 'off' AS false;
|
||||
|
||||
SELECT bool 'of' AS false;
|
||||
|
||||
SELECT bool 'o' AS error;
|
||||
|
||||
SELECT bool 'on_' AS error;
|
||||
|
||||
SELECT bool 'off_' AS error;
|
||||
|
||||
SELECT bool '1' AS true;
|
||||
|
||||
SELECT bool '11' AS error;
|
||||
|
||||
Reference in New Issue
Block a user