add select statements test file
This commit is contained in:
parent
357ce3b87d
commit
faec0c3ad7
|
@ -434,7 +434,9 @@ int test_sqls_in_stmt(SQLHENV env, SQLHDBC conn, SQLHSTMT stmt, const char *sqls
|
||||||
const char *p = NULL;
|
const char *p = NULL;
|
||||||
do {
|
do {
|
||||||
if (line[0] == '#') break;
|
if (line[0] == '#') break;
|
||||||
if (line[n-1] == '\n') line[n-1]='\0';
|
if (n>0 && line[n-1] == '\n') line[n-1]='\0';
|
||||||
|
if (n>0 && line[n-1] == '\r') line[n-1]='\0';
|
||||||
|
if (n>1 && line[n-2] == '\r') line[n-2]='\0';
|
||||||
p = line;
|
p = line;
|
||||||
while (isspace(*p)) ++p;
|
while (isspace(*p)) ++p;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
P: select * from db.t;
|
||||||
|
P: select * from db.f;
|
||||||
|
P: select * from db.v;
|
||||||
|
P: select * from db.mt;
|
Loading…
Reference in New Issue