Lines Matching refs:nSql
2474 static int _is_complete(char *zSql, int nSql){ in _is_complete() argument
2477 zSql[nSql] = ';'; in _is_complete()
2478 zSql[nSql+1] = 0; in _is_complete()
2480 zSql[nSql] = 0; in _is_complete()
2496 int nSql = 0; in process_input() local
2517 if( zLine && zLine[0]=='.' && nSql==0 ){ in process_input()
2527 if( _is_command_terminator(zLine) && _is_complete(zSql, nSql) ){ in process_input()
2530 nSqlPrior = nSql; in process_input()
2535 nSql = strlen30(zLine); in process_input()
2536 zSql = malloc( nSql+3 ); in process_input()
2541 memcpy(zSql, zLine, nSql+1); in process_input()
2546 zSql = realloc( zSql, nSql + len + 4 ); in process_input()
2551 zSql[nSql++] = '\n'; in process_input()
2552 memcpy(&zSql[nSql], zLine, len+1); in process_input()
2553 nSql += len; in process_input()
2555 if( zSql && _contains_semicolon(&zSql[nSqlPrior], nSql-nSqlPrior) in process_input()
2581 nSql = 0; in process_input()