]> source.dussan.org Git - jackcess.git/commitdiff
Fix some places where table/column names were not being handled case-insensitively...
authorJames Ahlborn <jtahlborn@yahoo.com>
Sun, 6 Jun 2010 01:36:35 +0000 (01:36 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sun, 6 Jun 2010 01:36:35 +0000 (01:36 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@472 f203690c-595d-4dc9-a70b-905162fa7fd2

src/changes/changes.xml
src/java/com/healthmarketscience/jackcess/Database.java
src/java/com/healthmarketscience/jackcess/Table.java

index a7b55398f5dd5d6866d732d996016b2214b39b18..59dedf91cf17f1fb6985908c0a4f0189488fffcc 100644 (file)
@@ -9,6 +9,10 @@
         Add ExportUtil and associated utilities for exporting tables to flat
         files (thanks to F. Gerbig).
       </action>
+      <action dev="jahlborn" type="fix" issue="3011084">
+        Fix some places where columns names were not being handled
+        case-insensitively.
+      </action>
     </release>
     <release version="1.2.0" date="2010-04-18">
       <action dev="bhamail" type="update" issue="1451628">
index 9ea72bf2e394c27a4550e0a53b529c4a7b3be848..d6786ba3bffedb24239f52821a7574011a8ab56c 100644 (file)
@@ -894,8 +894,8 @@ public class Database
       String fromName = (String)row.get(REL_COL_FROM_TABLE);
       String toName = (String)row.get(REL_COL_TO_TABLE);
       
-      if(fromTable.getName().equals(fromName) &&
-         toTable.getName().equals(toName))
+      if(fromTable.getName().equalsIgnoreCase(fromName) &&
+         toTable.getName().equalsIgnoreCase(toName))
       {
 
         String relName = (String)row.get(REL_COL_NAME);
@@ -904,7 +904,7 @@ public class Database
         // info for this relationship
         Relationship rel = null;
         for(Relationship tmp : relationships) {
-          if(tmp.getName().equals(relName)) {
+          if(tmp.getName().equalsIgnoreCase(relName)) {
             rel = tmp;
             break;
           }
index ebed2e3d1a51c4b933cf8cdbac098423e8411a91..02120c109a583f195cd5527b8e80ee64489a5120 100644 (file)
@@ -263,7 +263,7 @@ public class Table
    */
   public Column getColumn(String name) {
     for(Column column : _columns) {
-      if(column.getName().equals(name)) {
+      if(column.getName().equalsIgnoreCase(name)) {
         return column;
       }
     }
@@ -306,7 +306,7 @@ public class Table
    */
   public Index getIndex(String name) {
     for(Index index : _indexes) {
-      if(index.getName().equals(name)) {
+      if(index.getName().equalsIgnoreCase(name)) {
         return index;
       }
     }