** 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 "/". */
| 26401 | ** as is the Oracle "/". |
| 26402 | */ |
| 26403 | static int line_is_command_terminator(char *zLine){ |
| 26404 | while( IsSpace(zLine[0]) ){ zLine++; }; |
| 26405 | if( zLine[0]=='/' ) |
| 26406 | zLine += 1; /* Oracle */ |
| 26407 | else if ( ToLower(zLine[0])=='g' && ToLower(zLine[1])=='o' ) |
| 26408 | zLine += 2; /* SQL Server */ |
| 26409 | else |
| 26410 | return 0; |
| 26411 | return quickscan(zLine, QSS_Start, 0)==QSS_Start; |
| 26412 | } |
| 26413 | |
| 26414 | /* |
| 26415 | ** The CLI needs a working sqlite3_complete() to work properly. So error |
no test coverage detected