add select statements test file

This commit is contained in:
freemine 2020-10-30 16:59:45 +08:00
parent 357ce3b87d
commit faec0c3ad7
2 changed files with 7 additions and 1 deletions

View File

@ -434,7 +434,9 @@ int test_sqls_in_stmt(SQLHENV env, SQLHDBC conn, SQLHSTMT stmt, const char *sqls
const char *p = NULL;
do {
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;
while (isspace(*p)) ++p;

View File

@ -0,0 +1,4 @@
P: select * from db.t;
P: select * from db.f;
P: select * from db.v;
P: select * from db.mt;