Skip to content
Permalink
Browse files
fix #3782
git-svn-id: http://svn.osgeo.org/qgis/trunk@15847 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 28, 2011
1 parent 2f1cf5b commit 5160fefdc1be993098de6161e58ef9290109a291
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -3366,12 +3366,8 @@ bool QgsSpatiaLiteProvider::addFeatures( QgsFeatureList & flist )
else if ( type == QVariant::String )
{
// binding a TEXT value
QString txt = it->toString();
int len = txt.toUtf8().length() + 1;
char *vl = new char [len];
strcpy( vl, txt.toUtf8().constData() );
sqlite3_bind_text( stmt, ++ia, vl, len, SQLITE_TRANSIENT );
delete [] vl;
QByteArray ba = it->toString().toUtf8();
sqlite3_bind_text( stmt, ++ia, ba.constData(), ba.size(), SQLITE_TRANSIENT );
}
else
{

0 comments on commit 5160fef

Please sign in to comment.