Sha256: 8247711abfa5ff8bb28a9f9056cc11db9f08c875bf294950563776412643527c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# coding: utf-8 # frozen_string_literal: true 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.5 | lib/engine2/pre_bootstrap.rb |