Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d1c69838
Commit
d1c69838
authored
Oct 13, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic in insert() function.
parent
9ca41c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/interfaces/odbc/odbc.sql
src/interfaces/odbc/odbc.sql
+2
-2
No files found.
src/interfaces/odbc/odbc.sql
View file @
d1c69838
-- PostgreSQL catalog extensions for ODBC compatibility
-- PostgreSQL catalog extensions for ODBC compatibility
-- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.
2 2001/10/09 22:32:33
petere Exp $
-- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.
3 2001/10/13 19:16:32
petere Exp $
-- ODBC functions are described here:
-- ODBC functions are described here:
-- <http://msdn.microsoft.com/library/en-us/odbc/htm/odbcscalar_functions.asp>
-- <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 '
...
@@ -33,7 +33,7 @@ CREATE OR REPLACE FUNCTION concat(text, text) RETURNS text AS '
-- INSERT(string1, start, len, string2)
-- INSERT(string1, start, len, string2)
CREATE
OR
REPLACE
FUNCTION
insert
(
text
,
integer
,
integer
,
text
)
RETURNS
text
AS
'
CREATE
OR
REPLACE
FUNCTION
insert
(
text
,
integer
,
integer
,
text
)
RETURNS
text
AS
'
SELECT substring($1 from 1 for $2
) || $4 || substring($1 from $2 + $3 + 1
);
SELECT substring($1 from 1 for $2
- 1) || $4 || substring($1 from $2 + $3
);
'
LANGUAGE
SQL
;
'
LANGUAGE
SQL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment