<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -102,9 +102,10 @@ public class JdbcMySQLSpec {
 
         newBytes.insert(0, BACKQUOTE);
         newBytes.append(bytes);
-        int i = 0;
-        while ((i = newBytes.indexOf('.')) != -1) {
+        int i = 0, j = 0;
+        while ((i = newBytes.indexOf('.', j)) != -1) {
             newBytes.replace(i, 1, QUOTED_DOT);
+            j = i+3;
         }
         newBytes.append(BACKQUOTE);
 </diff>
      <filename>src/java/jdbc_adapter/JdbcMySQLSpec.java</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,11 @@ class MysqlSimpleTest &lt; Test::Unit::TestCase
     assert_equal &quot;a'a&quot;, s2
     assert_equal &quot;'a\\'a'&quot;, ActiveRecord::Base.connection.quote(s2)
   end
+
+  def test_table_name_quoting_with_dot
+    s = &quot;weblog_development.posts&quot;
+    assert_equal &quot;`weblog_development`.`posts`&quot;, ActiveRecord::Base.connection.quote_table_name(s)
+  end
 end
 
 class MysqlHasManyThroughTest &lt; Test::Unit::TestCase</diff>
      <filename>test/mysql_simple_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1526e10f3b103b805f8a78ca0c03870caf98cbe3</id>
    </parent>
  </parents>
  <author>
    <name>Laszlo Bacsi</name>
    <email>lackac@lackac.hu</email>
  </author>
  <url>http://github.com/nicksieger/activerecord-jdbc-adapter/commit/911ccee78213f68cf6c7f476e84edba02c51d675</url>
  <id>911ccee78213f68cf6c7f476e84edba02c51d675</id>
  <committed-date>2009-10-01T14:14:15-07:00</committed-date>
  <authored-date>2009-03-17T17:23:24-07:00</authored-date>
  <message>ACTIVERECORD_JDBC-8: Fixing mysql table name quoting endless loop bug</message>
  <tree>a6c4142e3dabd7e56e97b867959869c04b09d9f6</tree>
  <committer>
    <name>Nick Sieger</name>
    <email>nick@nicksieger.com</email>
  </committer>
</commit>
