Sha256: 30e9a6ddb67b3b2de0bb0e2734d30d5fc2e670702667c589a30244d6076f22b8
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 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 def valid_connection_sql 'select 1 from sysibm.sysdummy1' end end if defined?(JDBC::AS400) class JDBC::AS400::Dataset def supports_where_true? false 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.6 | lib/engine2/pre_bootstrap.rb |