removed sql statement from execute result
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user