Skip to content
Snippets Groups Projects
Commit edc4d1a8 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

comment out new code that depends on server side includes. Needs fixing.

parent 8b74c1e3
Branches
Tags
No related merge requests found
......@@ -17,9 +17,9 @@
#endif
#if !defined(__CINT__)
#include <postgres.h>
//#include <postgres.h>
#include <libpq-fe.h>
#include <catalog/pg_type.h>
//#include <catalog/pg_type.h>
#else
struct PGconn;
#endif
......@@ -44,7 +44,7 @@ public:
TSQLResult *GetDataBases(const char *wild = 0);
TSQLResult *GetTables(const char *dbname, const char *wild = 0);
TSQLResult *GetColumns(const char *dbname, const char *table, const char *wild = 0);
TSQLTableInfo *GetTableInfo(const char *tablename);
//TSQLTableInfo *GetTableInfo(const char *tablename);
Int_t CreateDataBase(const char *dbname);
Int_t DropDataBase(const char *dbname);
Int_t Reload();
......
......@@ -22,10 +22,6 @@
#include "TObjArray.h"
#include<iostream>
using namespace std;
ClassImp(TPgSQLServer)
//______________________________________________________________________________
......@@ -122,7 +118,6 @@ TSQLResult *TPgSQLServer::Query(const char *sql)
}
PGresult *res = PQexec(fPgSQL, sql);
//cout << " Query called " << sql << ":" << PQntuples(res) << endl;
if ((PQresultStatus(res) != PGRES_COMMAND_OK) &&
(PQresultStatus(res) != PGRES_TUPLES_OK)) {
......@@ -382,6 +377,7 @@ TSQLStatement* TPgSQLServer::Statement(const char *, Int_t)
return 0;
}
#if 0
//______________________________________________________________________________
TSQLTableInfo *TPgSQLServer::GetTableInfo(const char *tablename)
{
......@@ -509,10 +505,6 @@ TSQLTableInfo *TPgSQLServer::GetTableInfo(const char *tablename)
break;
}
//cout << " -I- ibin# " << ibin << "col# " << col << " cname: "
// << column_name << " sqltype:" << sqltype << " imod: "
// << imod << " isize:" << isize << endl;
if (!lst)
lst = new TList;
lst->Add(new TSQLColumnInfo(column_name,
......@@ -528,3 +520,4 @@ TSQLTableInfo *TPgSQLServer::GetTableInfo(const char *tablename)
PQclear(res);
return (new TSQLTableInfo(tablename, lst));
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment