Method: IBRuby::InterBaseMetaFunctions.quote
- Defined in:
- lib/ibmeta.rb
.quote(value, column_meta_data) ⇒ Object
288 289 290 291 292 293 294 295 296 |
# File 'lib/ibmeta.rb', line 288 def self.quote( value, ) if .expects_quoting "\'#{value}\'" elsif ((.type == InterBaseColumn::BLOB) && (.sub_type != 1 ) ) raise IBRubyException.new("'#{value}' is not a valid default for this column #{.name}.") else value end end |