Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Couple of small fixes for Jeremy's large change

  • Loading branch information...
commit 19ba7c94c72d08dfa6e790e13859da9c3dd6bc58 1 parent cf4b155
@wishdev wishdev authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/sequel_core/adapters/firebird.rb
View
5 lib/sequel_core/adapters/firebird.rb
@@ -233,7 +233,7 @@ class Dataset < Sequel::Dataset
def fetch_rows(sql, &block)
execute(sql) do |s|
begin
- @columns = s.fields.map{|c| output_identifier(c)}
+ @columns = s.fields.map{|c| output_identifier(c.name)}
s.fetchall(:symbols_hash).each do |r|
h = {}
r.each{|k,v| h[output_identifier(k)] = v}
@@ -286,7 +286,8 @@ def literal(v)
end
def quote_identifier(name)
- Fb::Global::reserved_keyword?(name) ? quoted_identifier(name.upcase) : super
+ name = super
+ Fb::Global::reserved_keyword?(name) ? quoted_identifier(name.upcase) : name
end
# The order of clauses in the SELECT SQL statement
Please sign in to comment.
Something went wrong with that request. Please try again.