SQL: Various engine fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@7827 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-10-28 17:58:06 +00:00
parent 5891b6dbc2
commit c02a343e75
7 changed files with 134 additions and 39 deletions

View file

@ -88,7 +88,6 @@ private:
Vector<Oid> oid;
int rows;
int fetched_row; //-1, if not fetched yet
String last_insert_table;
void FreeResult();
String ErrorMessage();
@ -111,7 +110,7 @@ const char *PostgreSQLReadString(const char *s, String& stmt)
if(*s == '\0') break;
else
if(*s == '\'' && s[1] == '\'') {
stmt.Cat('\'');
stmt.Cat("\'\'");
s += 2;
}
else
@ -502,9 +501,6 @@ bool PostgreSQLConnection::Execute()
}
CParser p(statement);
if((p.Id("insert") || p.Id("INSERT")) && (p.Id("into") || p.Id("INTO")) && p.IsId())
last_insert_table = p.ReadId();
String query;
int pi = 0;
const char *s = statement;