]> code.ossystems Code Review - openembedded-core.git/commit
libdnf: Use single-quotes around string literals used in SQL statements
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Sun, 3 May 2020 21:15:15 +0000 (23:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 May 2020 12:18:41 +0000 (13:18 +0100)
commit61d34df201cf6498854fa9258c320437b97071a4
tree76e9944e77695b692f2a9ed56028cff82fee74bc
parent03c5cfd7611c88ce82d16619a49e3ea9fa7385d8
libdnf: Use single-quotes around string literals used in SQL statements

If sqlite is built with -DSQLITE_DQS=0 in accordance with
https://sqlite.org/quirks.html#dblquote, migration to version 1.2 of the
history database would fail with:

  History database cannot be created: .../var/lib/dnf/history.sqlite.
  Error: SQLite error on ":memory:": Executing an SQL statement failed:
  no such column: 1.2

Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/libdnf/libdnf/0001-Use-single-quotes-around-string-literals-used-in-SQL.patch [new file with mode: 0644]
meta/recipes-devtools/libdnf/libdnf_0.47.0.bb