lib/odbc_adapter/quoting.rb in odbc_adapter-5.0.2 vs lib/odbc_adapter/quoting.rb in odbc_adapter-5.0.3
- old
+ new
@@ -16,11 +16,11 @@
# Avoid quoting any already quoted name
return name if name[0] == quote_char && name[-1] == quote_char
# If upcase identifiers, only quote mixed case names.
if database_metadata.upcase_identifiers?
- return name unless (name =~ /([A-Z]+[a-z])|([a-z]+[A-Z])/)
+ return name unless name =~ /([A-Z]+[a-z])|([a-z]+[A-Z])/
end
"#{quote_char.chr}#{name}#{quote_char.chr}"
end
@@ -31,12 +31,12 @@
zone_conversion_method = ActiveRecord::Base.default_timezone == :utc ? :getutc : :getlocal
if value.respond_to?(zone_conversion_method)
value = value.send(zone_conversion_method)
end
- value.strftime("%Y-%m-%d %H:%M:%S") # Time, DateTime
+ value.strftime('%Y-%m-%d %H:%M:%S') # Time, DateTime
else
- value.strftime("%Y-%m-%d") # Date
+ value.strftime('%Y-%m-%d') # Date
end
end
end
end