From 737ad2d826ca1e7bafbd946eb6c051c38c88b4fd Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Sun, 23 Jun 2013 21:46:13 +0200 Subject: [PATCH] updated alias() --- sqldb.cpp | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/sqldb.cpp b/sqldb.cpp index fb72715..d3abf8c 100644 --- a/sqldb.cpp +++ b/sqldb.cpp @@ -239,36 +239,25 @@ inline int sqlpg::testSQL(PGresult* a){ } bool sqlpg::alias(vector a){ string cmd; - cmd="select command from alias where nom='"+a[0]+"';"; + cmd="select command, argc from alias where nom='"+a[0]+"';"; //cout<<"cmd="<