Title: [509] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb: It seems our slash-quoting didn't work so well with Derby.
- Revision
- 509
- Author
- olabini
- Date
- 2007-04-26 16:10:30 -0400 (Thu, 26 Apr 2007)
Log Message
It seems our slash-quoting didn't work so well with Derby. isn't needed at all, actually
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb (508 => 509)
--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb 2007-04-26 19:23:34 UTC (rev 508)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb 2007-04-26 20:10:30 UTC (rev 509)
@@ -217,6 +217,10 @@
end
end
+ def quote_string(s)
+ s.gsub(/'/, "''") # ' (for ruby-mode)
+ end
+
# For DDL it appears you can quote "" column names, but in queries (like insert it errors out?)
# def quote_column_name(name) #:nodoc:
# %Q{"#{name}"}
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel