** 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 "/". */
| 20566 | ** as is the Oracle "/". |
| 20567 | */ |
| 20568 | static 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 |
no test coverage detected