Commit da2553ce authored by Giant's avatar Giant
Browse files

Undo select * bug for SQLite and H2 drivers! Not supposed to do that on FROM!

parent 76fe97d9
......@@ -197,13 +197,9 @@ public class H2SelectQuery implements SelectQuery {
++i;
}
if(!entry.getKey().equals("*")) {
sB.append(entry.getKey().replace("#__", this.db.getPrefix()));
sB.append(" AS ");
sB.append(entry.getValue().replace("#__", this.db.getPrefix()));
}else{
sB.append(entry.getKey());
}
sB.append(entry.getKey().replace("#__", this.db.getPrefix()));
sB.append(" AS ");
sB.append(entry.getValue().replace("#__", this.db.getPrefix()));
}
sB.append("\n");
......
......@@ -197,13 +197,9 @@ public class SQLiteSelectQuery implements SelectQuery {
++i;
}
if(!entry.getKey().equals("*")) {
sB.append(entry.getKey().replace("#__", this.db.getPrefix()));
sB.append(" AS ");
sB.append(entry.getValue().replace("#__", this.db.getPrefix()));
}else{
sB.append(entry.getKey());
}
sB.append(entry.getKey().replace("#__", this.db.getPrefix()));
sB.append(" AS ");
sB.append(entry.getValue().replace("#__", this.db.getPrefix()));
}
sB.append("\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment