File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11-- PostgreSQL catalog extensions for ODBC compatibility
2- -- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.2 2001/10/09 22:32:33 petere Exp $
2+ -- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.3 2001/10/13 19:16:32 petere Exp $
33
44-- ODBC functions are described here:
55-- <http://msdn.microsoft.com/library/en-us/odbc/htm/odbcscalar_functions.asp>
@@ -33,7 +33,7 @@ CREATE OR REPLACE FUNCTION concat(text, text) RETURNS text AS '
3333
3434-- INSERT(string1, start, len, string2)
3535CREATE OR REPLACE FUNCTION insert (text , integer , integer , text ) RETURNS text AS '
36- SELECT substring($1 from 1 for $2) || $4 || substring($1 from $2 + $3 + 1 );
36+ SELECT substring($1 from 1 for $2 - 1 ) || $4 || substring($1 from $2 + $3);
3737' LANGUAGE SQL;
3838
3939
You can’t perform that action at this time.
0 commit comments