Sha256: f7e6862a3b94728e8431df40a59ad8c73dd3d3383d5c16d29953e87324ff4935
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
# coding: utf-8 module Sequel class JDBC::Database def metadata_schema_and_table(table, opts) im = input_identifier_meth(opts[:dataset]) schema, table = schema_and_table(table) schema ||= default_schema schema ||= opts[:schema] schema = im.call(schema) if schema table = im.call(table) [schema, table] end end module JDBC::AS400::DatabaseMethods IDENTITY_VAL_LOCAL ||= "SELECT IDENTITY_VAL_LOCAL() FROM SYSIBM.SYSDUMMY1".freeze def last_insert_id(conn, opts=OPTS) statement(conn) do |stmt| sql = IDENTITY_VAL_LOCAL rs = log_yield(sql){stmt.executeQuery(sql)} rs.next rs.getInt(1) end end end if defined?(JDBC::AS400) module SchemaCaching def load_schema_cache(file) @schemas = Marshal.load(File.read(file, mode: 'rb')) nil end end end if defined? JRUBY_VERSION
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engine2-1.0.4 | lib/engine2/pre_bootstrap.rb |