aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq++/examples')
-rw-r--r--src/interfaces/libpq++/examples/testlibpq4.sql2
-rw-r--r--src/interfaces/libpq++/examples/testlibpq6.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq++/examples/testlibpq4.sql b/src/interfaces/libpq++/examples/testlibpq4.sql
index f9c74109328..53d3fdfffad 100644
--- a/src/interfaces/libpq++/examples/testlibpq4.sql
+++ b/src/interfaces/libpq++/examples/testlibpq4.sql
@@ -2,4 +2,4 @@ CREATE TABLE TBL1 (i int4);
CREATE TABLE TBL2 (i int4);
-CREATE RULE r1 AS ON INSERT TO TBL1 DO [INSERT INTO TBL2 values (new.i); NOTIFY TBL2];
+CREATE RULE r1 AS ON INSERT TO TBL1 DO (INSERT INTO TBL2 values (new.i); NOTIFY TBL2);
diff --git a/src/interfaces/libpq++/examples/testlibpq6.cc b/src/interfaces/libpq++/examples/testlibpq6.cc
index 1f469f145f5..2a6dc92ed5c 100644
--- a/src/interfaces/libpq++/examples/testlibpq6.cc
+++ b/src/interfaces/libpq++/examples/testlibpq6.cc
@@ -25,7 +25,7 @@ int main()
else cout << "Connected to database '" << dbName << "'..." << endl;
// Create a new table
- if ( !data.ExecCommandOk("CREATE TABLE foo (a int4, b char16, d float8)") ) {
+ if ( !data.ExecCommandOk("CREATE TABLE foo (a int4, b char(16), d float8)") ) {
cerr << "CREATE TABLE foo command failed" << endl;
exit(1);
}