MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / _is_complete

Function _is_complete

src/database/cppsqlite3.cpp:1313–1321  ·  view source on GitHub ↗

** Return true if zSql is a complete SQL statement. Return false if it ** ends in the middle of a string literal or C-style comment. */

Source from the content-addressed store, hash-verified

1311** ends in the middle of a string literal or C-style comment.
1312*/
1313static int _is_complete(char *zSql, int nSql){
1314 int rc;
1315 if( zSql==0 ) return 1;
1316 zSql[nSql] = ';';
1317 zSql[nSql+1] = 0;
1318 rc = sqlite3_complete(zSql);
1319 zSql[nSql] = 0;
1320 return rc;
1321}
1322/*
1323** Return TRUE if a semicolon occurs anywhere in the first N characters
1324** of string z[].

Callers 1

process_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected