1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Use SQL standard '' rather than \' for tutorial/sample code.

Backpatch to 8.1.X.
This commit is contained in:
Bruce Momjian
2006-05-11 19:21:14 +00:00
parent 637028afe1
commit ad98575617
2 changed files with 4 additions and 4 deletions

View File

@@ -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");