Fixing MySQL query parsing bug for IoTRelation; adjusting MySQL queries for new inter...
[iot2.git] / iotjava / iotinstaller / TableRelation.java
index 3b8f9accfa77b5448f7f0d5d7c622218ea060a65..f6babbb67cc54ac617ba1020051f8a2fddf0b297 100644 (file)
@@ -207,7 +207,12 @@ public class TableRelation extends TableSet {
                                // Scan WHERE for either IoTSet or IoTRelation
                                if (strScan.equals("WHERE")) {
                                        // The next token is definitely the WHERE statement
-                                       strScan = scanFile.next();
+                                       strScan = "";
+                                       String strWhere = scanFile.next();
+                                       while (!strWhere.equals(";")) {
+                                               strScan = strScan + " " + strWhere;
+                                               strWhere = scanFile.next();
+                                       }
                                        this.setWhereCondition(strScan);
                                }
                        }