-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Each exemple can be verified with pgssp_normalize_query() function.
-
minus sign "-" is removed more than expected:
select +1.1, -2, 2-1, b-a, b-1
SELECT +?, ?, ?-?, ba, b? -
parenthesis "(" ")" are removed more than expected:
insert into a values (null)
INSERT INTO a VALUES ?
or
select f(1)
SELECT f? -
Blank is missing:
select a from t where b=2 order by c
SELECT a FROM t WHERE b=?ORDER BY c -
non quoted identifiers are case sensitive (they should be lowercase):
select aB,AB,ab,Ab,"xYz","Xyz" from t
SELECT aB,AB,ab,Ab,"xYz","Xyz" FROM t -
variables from replaced literals should be typed:
select 1, 1.1, 'aa'
SELECT ?, ?, ?
(this opens others questions about NULL consideration ...) -
following functions are not common litterals, they should not by replaced:
select CURRENT_DATE, CURRENT_TIME, LOCALTIME, LOCALTIMESTAMP
SELECT ?, ?, ?, ?