Method: Sequel::Postgres::AutoParameterize::DatasetMethods#literal_append
- Defined in:
- lib/sequel/extensions/pg_auto_parameterize.rb
#literal_append(sql, v) ⇒ Object
For strings, numeric arguments, and date/time arguments, add them as parameters to the query instead of literalizing them into the SQL.
304 305 306 307 308 309 310 |
# File 'lib/sequel/extensions/pg_auto_parameterize.rb', line 304 def literal_append(sql, v) if auto_param?(sql) && (type = auto_param_type(v)) sql.add_arg(v) << type else super end end |