Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 798bc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 798bc09

Please sign in to comment.