Skip to content

Commit

Permalink
Replace QString:unicode() with utf16() in QgsHanaProviderConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Rylov authored and mrylov committed Dec 7, 2020
1 parent 9593d54 commit 48e3536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanaproviderconnection.cpp
Expand Up @@ -236,7 +236,7 @@ void QgsHanaProviderConnection::executeSqlStatement( const QString &sql ) const
{
ConnectionRef connRef = conn->getNativeRef();
StatementRef stmt = connRef->createStatement();
stmt->execute( reinterpret_cast<const char16_t *>( sql.unicode() ) );
stmt->execute( reinterpret_cast<const char16_t *>( sql.utf16() ) );
connRef->commit();
}
catch ( const odbc::Exception &ex )
Expand Down
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanaresultset.cpp
Expand Up @@ -137,7 +137,7 @@ QgsGeometry QgsHanaResultSet::getGeometry( unsigned short columnIndex )
return QgsGeometry();

if ( size > static_cast<size_t>( std::numeric_limits<int>::max() ) )
throw std::overflow_error( "Geometry size is larger than INT_MAX" );
throw std::overflow_error( "Geometry size is larger than maximum integer value" );

QByteArray wkbBytes( data, static_cast<int>( size ) );
QgsGeometry geom;
Expand Down

0 comments on commit 48e3536

Please sign in to comment.