On Apr 23, 1:59 am, Mike Golod <[email protected]> wrote:
> Yes, only single quotes inside the string must be doubled
Try this diff:
diff --git a/lib/sequel/adapters/shared/oracle.rb b/lib/sequel/
adapters/shared/o
index 41b5b76..2e56153 100644
--- a/lib/sequel/adapters/shared/oracle.rb
+++ b/lib/sequel/adapters/shared/oracle.rb
@@ -51,6 +51,11 @@ module Sequel
def as_sql(expression, aliaz)
"#{expression} #{quote_identifier(aliaz)}"
end
+
+ # Oracle uses the SQL standard of only doubling ' inside
strings.
+ def literal_string(v)
+ "'#{v.gsub("'", "''")}'"
+ end
def select_clause_order
SELECT_CLAUSE_ORDER
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---