From 8e16c94b962ffc7f79828febe53de78ec11b27bf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 3 Apr 2021 23:23:33 +1000 Subject: [PATCH] recognize select statements with a leading newline from old stats screen --- rslib/src/backend/dbproxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/backend/dbproxy.rs b/rslib/src/backend/dbproxy.rs index 56cf200fb..df5b88197 100644 --- a/rslib/src/backend/dbproxy.rs +++ b/rslib/src/backend/dbproxy.rs @@ -122,7 +122,7 @@ fn is_dql(sql: &str) -> bool { .take(10) .map(|c| c.to_ascii_lowercase()) .collect(); - head.starts_with("select ") + head.starts_with("select") } pub(super) fn db_query_row(ctx: &SqliteStorage, sql: &str, args: &[SqlValue]) -> Result {