removed sql statement from execute result

This commit is contained in:
2023-12-11 20:07:07 +01:00
parent 1c92e07173
commit 81f22d73d9
11 changed files with 230 additions and 244 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ sql::record sqlite_connection::describe(const std::string& table)
bool sqlite_connection::exists(const std::string &table_name)
{
const auto result = fetch_internal("SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND tbl_name='" + table_name + "' LIMIT 1");
sqlite_result_reader reader(std::move(result.rows), result.prototype.size());
sqlite_result_reader reader(result.rows, result.prototype.size());
if (!reader.fetch()) {
// Todo: throw an exception?