Commit 38c9c0d2 authored by Olivier Bertrand's avatar Olivier Bertrand

Fix compile warnings and errors for nullptr. Modified /storage/connect/tabjmg (cpp and h)

parent f590296c
......@@ -27,10 +27,20 @@
#include "mycat.h" // for FNC_COL
#include "filter.h"
#define nullptr 0
PQRYRES MGOColumns(PGLOBAL g, PCSZ db, PCSZ uri, PTOS topt, bool info);
/* -------------------------- Class JMGDISC -------------------------- */
/***********************************************************************/
/* Constructor */
/***********************************************************************/
JMGDISC::JMGDISC(PGLOBAL g, int *lg) : MGODISC(g, lg)
{
drv = "Java"; Jcp = NULL; columnid = nullptr;
} // end of JMGDISC constructor
/***********************************************************************/
/* Initialyze. */
/***********************************************************************/
......
/**************** tabjmg H Declares Source Code File (.H) **************/
/* Name: tabjmg.h Version 1.0 */
/* Name: tabjmg.h Version 1.1 */
/* */
/* (C) Copyright to the author Olivier BERTRAND 2017 */
/* */
......@@ -15,8 +15,7 @@
class JMGDISC : public MGODISC {
public:
// Constructor
JMGDISC(PGLOBAL g, int *lg) : MGODISC(g, lg)
{ drv = "Java"; Jcp = NULL; columnid = nullptr; }
JMGDISC(PGLOBAL g, int *lg);
// Methods
virtual bool Init(PGLOBAL g);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment