Sha256: 01889bb1ffa4bba1b4f579fa6d081f627b45babbfa3947cd63912dc42b6e527b

Contents?: true

Size: 295 Bytes

Versions: 15

Compression:

Stored size: 295 Bytes

Contents

class Upsert
  class Connection
    # @private
    module Sqlite3
      def bind_value(v)
        case v
        when BigDecimal
          v.to_s('F')
        when TrueClass
          't'
        when FalseClass
          'f'
        else
          super
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
upsert-2.9.10-java lib/upsert/connection/sqlite3.rb
upsert-2.9.10 lib/upsert/connection/sqlite3.rb
upsert-2.9.9-universal-java-11 lib/upsert/connection/sqlite3.rb
upsert-2.9.9 lib/upsert/connection/sqlite3.rb
upsert-2.2.1 lib/upsert/connection/sqlite3.rb
upsert-2.2.0 lib/upsert/connection/sqlite3.rb
upsert-2.1.2 lib/upsert/connection/sqlite3.rb
upsert-2.1.1 lib/upsert/connection/sqlite3.rb
upsert-2.1.0 lib/upsert/connection/sqlite3.rb
upsert-2.0.4 lib/upsert/connection/sqlite3.rb
upsert-2.0.3 lib/upsert/connection/sqlite3.rb
upsert-2.0.2 lib/upsert/connection/sqlite3.rb
upsert-2.0.1 lib/upsert/connection/sqlite3.rb
upsert-2.0.0 lib/upsert/connection/sqlite3.rb
upsert-1.2.0 lib/upsert/connection/sqlite3.rb