Commit ce4a287f authored by Bruce Momjian's avatar Bruce Momjian

Fix interface example errors causes by backend changes.

Permaine Cheung
parent 4ac77d37
...@@ -41,7 +41,7 @@ main(int argc, char **argv) ...@@ -41,7 +41,7 @@ main(int argc, char **argv)
afloat float4, \ afloat float4, \
adouble float8, \ adouble float8, \
achar char, \ achar char, \
achar16 char16, \ achar16 char(16), \
abpchar char(10), \ abpchar char(10), \
avarchar varchar(50), \ avarchar varchar(50), \
atext text, \ atext text, \
......
...@@ -52,7 +52,7 @@ main(int argc, char **argv) ...@@ -52,7 +52,7 @@ main(int argc, char **argv)
afloat float4, \ afloat float4, \
adouble float8, \ adouble float8, \
achar char, \ achar char, \
achar16 char16, \ achar16 char(16), \
abpchar char(10), \ abpchar char(10), \
avarchar varchar(50), \ avarchar varchar(50), \
atext text, \ atext text, \
......
...@@ -2,4 +2,4 @@ CREATE TABLE TBL1 (i int4); ...@@ -2,4 +2,4 @@ CREATE TABLE TBL1 (i int4);
CREATE TABLE TBL2 (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() ...@@ -25,7 +25,7 @@ int main()
else cout << "Connected to database '" << dbName << "'..." << endl; else cout << "Connected to database '" << dbName << "'..." << endl;
// Create a new table // 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; cerr << "CREATE TABLE foo command failed" << endl;
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment