Why always return lower-case with table name and fieldname #447

Closed
hiscaler opened this Issue Feb 25, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@hiscaler

Example: My table name is "TableName", has one field as: "RealName", but i must use lower-case with data field for read it.

logs = DB[:TableName]
i = 1
logs.each do |row|
  puts "当前显示第 #{i} 条记录......"
  i += 1
  # puts row[:Realname] # is wrong
  puts row[:realname] # is right
end

Why sequel change initial state?

@jeremyevans

This comment has been minimized.

Show comment Hide comment
@jeremyevans

jeremyevans Feb 25, 2012

Owner

This is by design. Set DB.identifier_input_method = DB.identifier_output_method = nil if you don't want to have any identifier translation done.

If you have questions about how to use Sequel, please post on the sequel-talk Google Group. The GitHub Issue Tracker should only be used for bugs. Unless you are sure something is a bug, send a message to the Google Group.

Owner

jeremyevans commented Feb 25, 2012

This is by design. Set DB.identifier_input_method = DB.identifier_output_method = nil if you don't want to have any identifier translation done.

If you have questions about how to use Sequel, please post on the sequel-talk Google Group. The GitHub Issue Tracker should only be used for bugs. Unless you are sure something is a bug, send a message to the Google Group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment