MCPcopy Create free account
hub / github.com/audacity/audacity / line_is_command_terminator

Function line_is_command_terminator

lib-src/sqlite/shell.c:20568–20578  ·  view source on GitHub ↗

** Return TRUE if the line typed in is an SQL command terminator other ** than a semi-colon. The SQL Server style "go" command is understood ** as is the Oracle "/". */

Source from the content-addressed store, hash-verified

20566** as is the Oracle "/".
20567*/
20568static int line_is_command_terminator(const char *zLine){
20569 while( IsSpace(zLine[0]) ){ zLine++; };
20570 if( zLine[0]=='/' && _all_whitespace(&zLine[1]) ){
20571 return 1; /* Oracle */
20572 }
20573 if( ToLower(zLine[0])=='g' && ToLower(zLine[1])=='o'
20574 && _all_whitespace(&zLine[2]) ){
20575 return 1; /* SQL Server */
20576 }
20577 return 0;
20578}
20579
20580/*
20581** We need a default sqlite3_complete() implementation to use in case

Callers 1

process_inputFunction · 0.85

Calls 2

_all_whitespaceFunction · 0.85
ToLowerFunction · 0.85

Tested by

no test coverage detected