From 765a9d394b5192050d490619537582eebdc159b6 Mon Sep 17 00:00:00 2001 From: gsherman Date: Sun, 28 Nov 2004 05:40:58 +0000 Subject: [PATCH] Added accessor for reserved word list git-svn-id: http://svn.osgeo.org/qgis/trunk@2357 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgspgutil.cpp | 5 +++++ src/qgspgutil.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/qgspgutil.cpp b/src/qgspgutil.cpp index 29ac1af462d..442bd3f7e3b 100644 --- a/src/qgspgutil.cpp +++ b/src/qgspgutil.cpp @@ -48,6 +48,10 @@ PGconn *QgsPgUtil::connection() { return mPgConnection; } +const QStringList & QgsPgUtil::reservedWords() +{ + return mReservedWords; +} void QgsPgUtil::initReservedWords() { // create the reserved word list by loading @@ -111,6 +115,7 @@ void QgsPgUtil::initReservedWords() << "LIMIT" << "LOCALTIME" << "LOCALTIMESTAMP" + << "NAMES" << "NATURAL" << "NEW" << "NOT" diff --git a/src/qgspgutil.h b/src/qgspgutil.h index 341bc01c501..8084c4b6ea6 100644 --- a/src/qgspgutil.h +++ b/src/qgspgutil.h @@ -49,6 +49,10 @@ class QgsPgUtil * @return Pointer to the PostgreSQL connection object */ PGconn *connection(); + /*! + * Get the reserved word list + */ + const QStringList & reservedWords(); protected: //! Protected constructor QgsPgUtil();