mirror of https://github.com/postgres/postgres
Fix interface example errors causes by backend changes.
Permaine Cheung
This commit is contained in:
parent
4ac77d3708
commit
ce4a287f43
|
@ -41,7 +41,7 @@ main(int argc, char **argv)
|
|||
afloat float4, \
|
||||
adouble float8, \
|
||||
achar char, \
|
||||
achar16 char16, \
|
||||
achar16 char(16), \
|
||||
abpchar char(10), \
|
||||
avarchar varchar(50), \
|
||||
atext text, \
|
||||
|
|
|
@ -52,7 +52,7 @@ main(int argc, char **argv)
|
|||
afloat float4, \
|
||||
adouble float8, \
|
||||
achar char, \
|
||||
achar16 char16, \
|
||||
achar16 char(16), \
|
||||
abpchar char(10), \
|
||||
avarchar varchar(50), \
|
||||
atext text, \
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue