mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
85813237f9
commit
765a9d394b
@ -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"
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user