- handle PQsendQuery in one getNextFeature run (fixes nested iteration of
cursors with connection pooling)
- beautify DELETE and ALTER TABLE statements
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8313 c8812cc2-4d05-0410-92ff-de0c093fc19c
- remove some unnecessary includes
- add private PQexec method with additional debug output
- update all changed attributes of a feature at once
- fix quoting and beautify creation of SQL statements
- replace assertion on unexpected field types with useful debug output and
consider values as NULL
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8307 c8812cc2-4d05-0410-92ff-de0c093fc19c
- quote values and identifiers properly
- remove now unnecessary reserved word dialog
- also consider primary key field and geometry field in double field check
- allow rename of primary key field
- remove disabled connect button (spit automatically connects on OK)
- keep the window open window if there was an error
- fixes#865 and #930
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8293 c8812cc2-4d05-0410-92ff-de0c093fc19c
- apply patch #1009 from Steven Mizuno. Thanks.
- remove column name and use of PQfnumber for cursors
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8292 c8812cc2-4d05-0410-92ff-de0c093fc19c
- make declareCursor and getFeature private
- there's no need to track column names in cursors
(which contained a bug triggering #962 again and more)
- introduce private method field(index) that verifies that
the index in valid or throws an exception.
- use that in public methods that get indexes from
outside (minValue, maxValue, uniqueValues...)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8290 c8812cc2-4d05-0410-92ff-de0c093fc19c
- put common code from select/getNextFeature and getFeatureById methods
to new declareCursor and getFeature methods
- unify type handling and support bool, arrays and time types
(fixes#1009)
- ignore columns not explicitly supported (might apply to columns
previously supported implicitly; please file a bug if you run into
one)
- fixes a unreported problem with getFeatureById returning only NULL
attributes.
Please test!
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8285 c8812cc2-4d05-0410-92ff-de0c093fc19c
- filter out non useful / generated / copied in sources
- various other small tweaks to formatting
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8276 c8812cc2-4d05-0410-92ff-de0c093fc19c
- create and destroy OGRSpatialReferenceH in constructor/destructor
- move the PROJ.4 strings to OGR instead of a member variable and keep
track its validity in mIsValidFlag.
This reduces the need to allocate/deallocate of OGR structures and PROJ.4
parsing and thereby speeds it up quite a bit. Especially when on-the-fly
projection is in use.
- collect common code of createFromSrid, createFromEpsg and createFromSrsId
in the new loadFromDb method
NOTE: invalid PROJ.4 strings are now lost, I hope that doesn't break
anything.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8263 c8812cc2-4d05-0410-92ff-de0c093fc19c