patch for examples
There are a few typos in the examples under src/interfaces.
The following is a small patch to fix them.
Permaine
Red Hat Canada Limited
Index: libpgeasy/examples/pginsert.c
===================================================================
RCS file:
/projects/cvsroot/pgsql/src/interfaces/libpgeasy/examples/pginsert.c,v
retrieving revision 1.7
diff -r1.7 pginsert.c
44c44
< achar16 char16, \
---
achar16 char(16), \
Index: libpgeasy/examples/pgnulltest.c
===================================================================
RCS file:
/projects/cvsroot/pgsql/src/interfaces/libpgeasy/examples/pgnulltest.c,v
retrieving revision 1.7
diff -r1.7 pgnulltest.c
55c55
< achar16 char16, \
---
achar16 char(16), \
72c72
< '');");
---
'now');");
Index: libpq++/examples/testlibpq4.sql
===================================================================
RCS file:
/projects/cvsroot/pgsql/src/interfaces/libpq++/examples/testlibpq4.sql,v
retrieving revision 1.1
diff -r1.1 testlibpq4.sql
5c5
< 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);
Index: libpq++/examples/testlibpq6.cc
===================================================================
RCS file:
/projects/cvsroot/pgsql/src/interfaces/libpq++/examples/testlibpq6.cc,v
retrieving revision 1.7
diff -r1.7 testlibpq6.cc
28c28
< 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)") ) {
"Permaine Cheung" <pcheung@redhat.com> writes:
There are a few typos in the examples under src/interfaces.
Actually, I think those are all things that used to be valid ...
long ago, in some cases. They do need to be fixed now. Thanks
for the patch!
regards, tom lane
Patch attached and applied. Thanks.
---------------------------------------------------------------------------
Permaine Cheung wrote:
There are a few typos in the examples under src/interfaces.
The following is a small patch to fix them.Permaine
Red Hat Canada LimitedIndex: libpgeasy/examples/pginsert.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/libpgeasy/examples/pginsert.c,v retrieving revision 1.7 diff -r1.7 pginsert.c 44c44 < achar16 char16, \ ---achar16 char(16), \
Index: libpgeasy/examples/pgnulltest.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/libpgeasy/examples/pgnulltest.c,v retrieving revision 1.7 diff -r1.7 pgnulltest.c 55c55 < achar16 char16, \ ---achar16 char(16), \
72c72
< '');");
---'now');");
Index: libpq++/examples/testlibpq4.sql =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/libpq++/examples/testlibpq4.sql,v retrieving revision 1.1 diff -r1.1 testlibpq4.sql 5c5 < 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); Index: libpq++/examples/testlibpq6.cc =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/libpq++/examples/testlibpq6.cc,v retrieving revision 1.7 diff -r1.7 testlibpq6.cc 28c28 < 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)") ) {
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026