diff options
author | Michael Meskes <meskes@postgresql.org> | 2006-08-29 12:24:52 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2006-08-29 12:24:52 +0000 |
commit | b1710339ba2e318cf6af1a50d4256e9fa98e6c8a (patch) | |
tree | b6a8e0e1cd54f153d737beb368a528bfb389ad42 /src/interfaces/ecpg/test/expected/sql-indicators.c | |
parent | ba9f9bf1b103d72196d76646c6fcc71abbdd51f5 (diff) | |
download | postgresql-b1710339ba2e318cf6af1a50d4256e9fa98e6c8a.tar.gz postgresql-b1710339ba2e318cf6af1a50d4256e9fa98e6c8a.zip |
Fixed parser and library to allow empty database names.
Streamlined connection name parsing.
Added Joachim's patch to shorten paths before diffing.
Diffstat (limited to 'src/interfaces/ecpg/test/expected/sql-indicators.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/sql-indicators.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.c b/src/interfaces/ecpg/test/expected/sql-indicators.c index bf8df3bdbf2..cc7054d4731 100644 --- a/src/interfaces/ecpg/test/expected/sql-indicators.c +++ b/src/interfaces/ecpg/test/expected/sql-indicators.c @@ -10,7 +10,7 @@ #include <stdio.h> -#line 1 "./../../include/sqlca.h" +#line 1 "sqlca.h" #ifndef POSTGRES_SQLCA_H #define POSTGRES_SQLCA_H @@ -81,7 +81,7 @@ struct sqlca_t *ECPGget_sqlca(void); #line 3 "indicators.pgc" -#line 1 "./../regression.h" +#line 1 "regression.h" @@ -123,18 +123,18 @@ int main(int argc, char **argv) #line 23 "indicators.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 1 , 'Hello' , 0 )", ECPGt_EOIT, ECPGt_EORT);} + { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 1 , 'Hello' , 0 ) ", ECPGt_EOIT, ECPGt_EORT);} #line 25 "indicators.pgc" /* use indicator in insert */ - { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 2 , 'Hi there' , ? )", + { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 2 , 'Hi there' , ? ) ", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} #line 28 "indicators.pgc" nullind = 0; - { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 3 , 'Good evening' , ? )", + { ECPGdo(__LINE__, 0, 1, NULL, "insert into test ( id , str , val ) values( 3 , 'Good evening' , ? ) ", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} #line 30 "indicators.pgc" @@ -164,7 +164,7 @@ int main(int argc, char **argv) /* use indicators for update */ intvar = 5; nullind = -1; - { ECPGdo(__LINE__, 0, 1, NULL, "update test set val = ? where id = 1", + { ECPGdo(__LINE__, 0, 1, NULL, "update test set val = ? where id = 1 ", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} #line 42 "indicators.pgc" |