Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff62b0d

Browse files
committed
Replacing a substring query for PgSQL with a non-comma version (there are no compatibility issues while skipping problems with possible comma filtering)
1 parent 63d7707 commit ff62b0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xml/queries.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@
8383
<order query="ORDER BY %s ASC"/>
8484
<count query="COUNT(%s)"/>
8585
<comment query="--" query2="/*"/>
86-
<substring query="SUBSTR((%s)::text,%d,%d)"/>
86+
<substring query="SUBSTRING((%s)::text FROM %d FOR %d)"/>
8787
<concatenate query="%s||%s"/>
8888
<case query="SELECT (CASE WHEN (%s) THEN '1' ELSE '0' END)"/>
8989
<hex query="ENCODE(CONVERT_TO((%s),'UTF8'),'HEX')"/>
90-
<inference query="ASCII(SUBSTR((%s)::text,%d,1))>%d"/>
90+
<inference query="ASCII(SUBSTRING((%s)::text FROM %d FOR 1))>%d"/>
9191
<banner query="VERSION()"/>
9292
<current_user query="CURRENT_USER"/>
9393
<current_db query="CURRENT_DATABASE()"/>

0 commit comments

Comments
 (0)