From d921aedfd6ddcfeae770f23cc113e8416805e192 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 28 Nov 2011 20:03:16 -0500 Subject: [PATCH] idk --- database.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database.d b/database.d index 1bac9a1..fa4f6ca 100644 --- a/database.d +++ b/database.d @@ -837,10 +837,10 @@ string getCreateTable(string sql, string tableName) { string type; string defaultValue; } - Field[] fields; + Field*[] fields; 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) { if(word == ")") { parens --; @@ -871,7 +871,7 @@ string getCreateTable(string sql, string tableName) { state = 3; else if (word == ",") { fields ~= current; - current = Field(); + current = new Field(); state = 0; // next } break;