diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-07 17:02:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-07 17:02:16 +0000 |
commit | 063af428543408238d20e837f49e7757db2f5afa (patch) | |
tree | d6cb8ab330397989e11a86ac39bc01e1ff6e3390 | |
parent | Enable gc-sections in release (diff) | |
download | libdbpp-063af428543408238d20e837f49e7757db2f5afa.tar.bz2 libdbpp-063af428543408238d20e837f49e7757db2f5afa.tar.xz libdbpp-063af428543408238d20e837f49e7757db2f5afa.zip |
Remove p2 referencen in table name and be specific about schema it exists in.
-rw-r--r-- | libdbpp/mockDatabase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdbpp/mockDatabase.cpp b/libdbpp/mockDatabase.cpp index db192bd..ae2d06c 100644 --- a/libdbpp/mockDatabase.cpp +++ b/libdbpp/mockDatabase.cpp @@ -77,12 +77,12 @@ void MockDatabase::CreateStatusTable(DB::Connection * conn) const { conn->execute( - "CREATE TABLE _p2_teststatus( \ + "CREATE TABLE public._libdbpp_teststatus( \ pid int, \ script varchar(256), \ scriptdir varchar(256))"); auto ins = conn->newModifyCommand( - "INSERT INTO _p2_teststatus(pid) VALUES(?)"); + "INSERT INTO public._libdbpp_teststatus(pid) VALUES(?)")); ins->bindParamI(0, getpid()); ins->execute(); delete ins; @@ -91,14 +91,14 @@ MockDatabase::CreateStatusTable(DB::Connection * conn) const void MockDatabase::DropStatusTable(DB::Connection * conn) const { - conn->execute("DROP TABLE _p2_teststatus"); + conn->execute("DROP TABLE public._libdbpp_teststatus"); } void MockDatabase::UpdateStatusTable(DB::Connection * conn, const boost::filesystem::path & script) const { auto upd = conn->newModifyCommand( - "UPDATE _p2_teststatus SET script = ?, scriptdir = ?"); + "UPDATE public._libdbpp_teststatus SET script = ?, scriptdir = ?")); upd->bindParamS(0, script.string()); upd->bindParamS(1, script.parent_path().string()); upd->execute(); |