Skip to content
Permalink
Browse files

Fix conversion from WKB to string in postgres provider (follow up d72…

  • Loading branch information
wonder-sk committed Nov 14, 2016
1 parent 1f81a7c commit 798bc09130395659aee7f1f777c2b4378e2b51df
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -2499,7 +2499,7 @@ void QgsPostgresProvider::appendGeomParam( const QgsGeometry& geom, QStringList

QScopedPointer<QgsGeometry> convertedGeom( convertToProviderType( geom ) );
QByteArray wkb( convertedGeom ? convertedGeom->exportToWkb() : geom.exportToWkb() );
const char *buf = wkb.constData();
const unsigned char *buf = reinterpret_cast< const unsigned char * >( wkb.constData() );
int wkbSize = wkb.length();

for ( int i = 0; i < wkbSize; ++i )

0 comments on commit 798bc09

Please sign in to comment.
You can’t perform that action at this time.