From ec998ae9a6aeda09ad64bb94a50ac8b9fccd246d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 27 Sep 2010 11:32:04 -0700 Subject: using the last seen column for quoting --- spec/support/fake_record.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/support') diff --git a/spec/support/fake_record.rb b/spec/support/fake_record.rb index eb6aa2c472..2aba0c10f2 100644 --- a/spec/support/fake_record.rb +++ b/spec/support/fake_record.rb @@ -39,6 +39,11 @@ module FakeRecord end def quote thing, column = nil + if column && column.type == :integer + return 'NULL' if thing.nil? + return thing.to_i + end + case thing when true "'t'" -- cgit v1.2.3