Added accessor for reserved word list

git-svn-id: http://svn.osgeo.org/qgis/trunk@2357 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-11-28 05:40:58 +00:00
parent 85813237f9
commit 765a9d394b
2 changed files with 9 additions and 0 deletions

View File

@ -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"

View File

@ -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();