mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
recognize select statements with a leading newline from old stats screen
This commit is contained in:
parent
12a3d9ec87
commit
8e16c94b96
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue