]> git.nothing2do.fr Git - diary-shell.git/commitdiff
shitty bug
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 6 Jul 2013 11:17:12 +0000 (13:17 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 6 Jul 2013 11:17:12 +0000 (13:17 +0200)
sqldb.cpp

index 27c87fbfd5d9cbe6f95259dbecf1b395e821e443..30f7c19e2426c026290db252b10d833bc1b84f3d 100644 (file)
--- a/sqldb.cpp
+++ b/sqldb.cpp
@@ -258,7 +258,7 @@ bool sqlpg::alias(vector<string> a){
     argc=atoi(PQgetvalue(res, 0, 1));
     clog<<"argc="<<argc<<endl;
     res=PQprepare(conn, "execalias",cmd2.c_str(), argc, NULL);
-    //testSQL(res);
+    testSQL(res);
 
     clog<<"for argc="<<argc<<"\n";
     for(int i=0; i<argc; i++){
@@ -270,7 +270,7 @@ bool sqlpg::alias(vector<string> a){
     res=PQexecPrepared(conn, "execalias", argc, value, length, binary, 0);
     testSQL(res);
     print();
-    testSQL(exec("DEALLOCATE execalias"));
+    exec("DEALLOCATE execalias");
     clog<<"alias() end here\n";
     return 1;
 }