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/insert_manager_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spec/insert_manager_spec.rb') diff --git a/spec/insert_manager_spec.rb b/spec/insert_manager_spec.rb index 1cd61ae630..9d6045a913 100644 --- a/spec/insert_manager_spec.rb +++ b/spec/insert_manager_spec.rb @@ -37,7 +37,10 @@ module Arel manager = Arel::InsertManager.new Table.engine time = Time.now - manager.insert [[table[:id], time]] + attribute = table[:id] + attribute.column.type = :date + + manager.insert [[attribute, time]] manager.to_sql.should be_like %{ INSERT INTO "users" ("id") VALUES (#{Table.engine.connection.quote time}) } -- cgit v1.2.3