Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d1c69838
Commit
d1c69838
authored
23 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Fix logic in insert() function.
parent
9ca41c04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/odbc/odbc.sql
+2
-2
2 additions, 2 deletions
src/interfaces/odbc/odbc.sql
with
2 additions
and
2 deletions
src/interfaces/odbc/odbc.sql
+
2
−
2
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
:3
3
petere Exp $
-- $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/odbc.sql,v 1.
3
2001/10/
13 19:16
:3
2
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment