lib/ppcurses/actions/InsertSQLDataAction.rb in ppcurses-0.0.19 vs lib/ppcurses/actions/InsertSQLDataAction.rb in ppcurses-0.0.20
- old
+ new
@@ -36,10 +36,10 @@
proceed.execute()
if proceed.data == '1' then
self.printLine('')
begin
- prepStatement = db.prepare(sql)
+ prepStatement = @db.prepare(@sql)
prepStatement.bind_params(dataArray)
prepStatement.execute()
prepStatement.close()
self.printSuccessLine('Execution successful')
rescue SQLite3::Exception => e