recognize select statements with a leading newline from old stats screen

This commit is contained in:
Damien Elmes 2021-04-03 23:23:33 +10:00
parent 12a3d9ec87
commit 8e16c94b96

View file

@ -122,7 +122,7 @@ fn is_dql(sql: &str) -> bool {
.take(10) .take(10)
.map(|c| c.to_ascii_lowercase()) .map(|c| c.to_ascii_lowercase())
.collect(); .collect();
head.starts_with("select ") head.starts_with("select")
} }
pub(super) fn db_query_row(ctx: &SqliteStorage, sql: &str, args: &[SqlValue]) -> Result<DbResult> { pub(super) fn db_query_row(ctx: &SqliteStorage, sql: &str, args: &[SqlValue]) -> Result<DbResult> {