aboutsummaryrefslogtreecommitdiff
path: root/src/guff/database.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/database.cr')
-rw-r--r--src/guff/database.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guff/database.cr b/src/guff/database.cr
index 6882712..bab300f 100644
--- a/src/guff/database.cr
+++ b/src/guff/database.cr
@@ -45,7 +45,7 @@ module Guff
run(sql, args) do |rs|
if rs.next
- r = rs[0] as String
+ r = rs[0].to_s
end
end
@@ -142,6 +142,7 @@ module Guff
&block : Proc(::SQLite3::ResultSet, Nil) \
)
# build statement
+ puts "sql = %s" % [sql]
st = prepare(sql)
# exec and close statement