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
ad985756
Commit
ad985756
authored
May 11, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SQL standard '' rather than \' for tutorial/sample code.
Backpatch to 8.1.X.
parent
637028af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+1
-1
src/tutorial/funcs.source
src/tutorial/funcs.source
+3
-3
No files found.
src/interfaces/ecpg/test/test1.pgc
View file @
ad985756
...
...
@@ -87,7 +87,7 @@ exec sql end declare section;
exec sql execute immediate :command;
printf("New tuple got OID = %ld\n", sqlca.sqlerrd[1]);
sprintf(command, "insert into \"Test\" (name, amount, letter) values ('db:
\\\'mm\\\
'', 2, 't')");
sprintf(command, "insert into \"Test\" (name, amount, letter) values ('db:
''mm'
'', 2, 't')");
exec sql execute immediate :command;
strcpy(msg, "execute insert 2");
...
...
src/tutorial/funcs.source
View file @
ad985756
...
...
@@ -6,7 +6,7 @@
--
-- Copyright (c) 1994-5, Regents of the University of California
--
-- $PostgreSQL: pgsql/src/tutorial/funcs.source,v 1.
8 2006/02/27 16:09:50 petere
Exp $
-- $PostgreSQL: pgsql/src/tutorial/funcs.source,v 1.
9 2006/05/11 19:21:14 momjian
Exp $
--
---------------------------------------------------------------------------
...
...
@@ -76,10 +76,10 @@ WHERE EMP.cubicle ~= '(2,1)'::point;
-- columns of EMP.
CREATE FUNCTION new_emp() RETURNS EMP
AS 'SELECT
\'None\
'::text AS name,
AS 'SELECT
''None'
'::text AS name,
1000 AS salary,
25 AS age,
\'(2,2)\
'::point AS cubicle'
''(2,2)'
'::point AS cubicle'
LANGUAGE SQL;
-- you can then project a column out of resulting the tuple by using the
...
...
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