Skip to content

Commit

Permalink
Fix parse error when .sqliterc option is '.timer ON'
Browse files Browse the repository at this point in the history
  • Loading branch information
akicho8 committed Jul 24, 2017
1 parent 31dcabc commit 71b7f95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/migr8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -853,15 +853,17 @@ class SQLite3 < Base
PATTERN = /\bsqlite3\b/

def execute_sql(sql, cmdopt=nil)
preamble = ".bail ON\n"
return super(preamble+sql, cmdopt)
end

def run_sql(sql, opts={})
preamble = ".bail ON\n"
super(preamble+sql, opts)
end

def preamble
".bail ON\n" + ".timer OFF\n"
end

protected

def _histrory_table_statement()
Expand Down

0 comments on commit 71b7f95

Please sign in to comment.