mirror of https://github.com/adamdruppe/arsd.git
idk
This commit is contained in:
parent
6608dd9cb5
commit
d921aedfd6
|
@ -837,10 +837,10 @@ string getCreateTable(string sql, string tableName) {
|
||||||
string type;
|
string type;
|
||||||
string defaultValue;
|
string defaultValue;
|
||||||
}
|
}
|
||||||
Field[] fields;
|
Field*[] fields;
|
||||||
|
|
||||||
string word = readWord(sql);
|
string word = readWord(sql);
|
||||||
Field current;
|
Field* current = new Field(); // well, this is interesting... under new DMD, not using new breaks it in CTFE because it overwrites the one entry!
|
||||||
while(word != ")" || parens) {
|
while(word != ")" || parens) {
|
||||||
if(word == ")") {
|
if(word == ")") {
|
||||||
parens --;
|
parens --;
|
||||||
|
@ -871,7 +871,7 @@ string getCreateTable(string sql, string tableName) {
|
||||||
state = 3;
|
state = 3;
|
||||||
else if (word == ",") {
|
else if (word == ",") {
|
||||||
fields ~= current;
|
fields ~= current;
|
||||||
current = Field();
|
current = new Field();
|
||||||
state = 0; // next
|
state = 0; // next
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue