Skip to content
Snippets Groups Projects
Commit ce4a287f authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix interface example errors causes by backend changes.

Permaine Cheung
parent 4ac77d37
No related branches found
No related tags found
No related merge requests found
...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment