Title: [459] trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java: not doing quote substitution across entire string...whoops
- Revision
- 459
- Author
- enebo
- Date
- 2007-04-18 11:55:59 -0400 (Wed, 18 Apr 2007)
Log Message
not doing quote substitution across entire string...whoops
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java (458 => 459)
--- trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-04-18 04:43:04 UTC (rev 458)
+++ trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-04-18 15:55:59 UTC (rev 459)
@@ -543,7 +543,7 @@
boolean replacementFound = false;
ByteList bl = ((RubyString) string).getByteList();
- for(int i=bl.begin; i < bl.realSize; i++) {
+ for(int i = bl.begin; i < bl.begin + bl.realSize; i++) {
ByteList rep = null;
switch (bl.bytes[i]) {
case 0: rep = ZERO; break;
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel