diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-01 02:04:35 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-01 02:04:35 +0000 |
commit | 74b7bfa6d2c5c777b11cb6ea8687c0461b579f7e (patch) | |
tree | 78d7825a0a49d20f0a58dfc5a125b2ad191a0303 /activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb | |
parent | 97f4a5aa14fa4890b734fd1574fad87e240c0823 (diff) | |
download | rails-74b7bfa6d2c5c777b11cb6ea8687c0461b579f7e.tar.gz rails-74b7bfa6d2c5c777b11cb6ea8687c0461b579f7e.tar.bz2 rails-74b7bfa6d2c5c777b11cb6ea8687c0461b579f7e.zip |
Mind the order of things.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb b/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb index 7a6386bd7d..e25198fa0d 100644 --- a/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb @@ -294,8 +294,10 @@ module ActiveRecord # Quotes the column value to help prevent # {SQL injection attacks}[http://en.wikipedia.org/wiki/SQL_injection]. def quote(value, column = nil) + return value.quoted_id if value.respond_to?(:quoted_id) + retvalue = "<INVALID>" - + puts "quote(#{value.inspect}(#{value.class}),#{column.type.inspect})" if FB_TRACE # If a column was passed in, use column type information unless value.nil? |