Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1c6983

Browse files
committed
Fix logic in insert() function.
1 parent9ca41c0 commitd1c6983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/odbc/odbc.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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)
3535
CREATE OR REPLACEFUNCTIONinsert(text,integer,integer,text) RETURNStextAS'
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp