Skip site navigation (1) Skip section navigation (2)

patch for examples

From: "Permaine Cheung" <pcheung(at)redhat(dot)com>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: patch for examples
Date: 2002-05-17 18:48:06
Message-ID: 087401c1fdd3$61a93350$f90e10ac@toronto.redhat.com (view raw or flat)
Thread:
Lists: pgsql-patches
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)") ) {



Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2002-05-17 22:48:11
Subject: Re: patch for examples
Previous:From: Peter EisentrautDate: 2002-05-17 13:37:05
Subject: Re: [INTERFACES] libpgtcl - backend version information patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group