Skip to content
Permalink
Browse files
fix #1230
git-svn-id: http://svn.osgeo.org/qgis/trunk@9112 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 21, 2008
1 parent ddaab77 commit d7717556577bb3bc6e137d5aee5dd6a3b6f954cd
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/plugins/spit/qgsshapefile.cpp
  2. +3 −2 src/plugins/spit/qgsspit.cpp
@@ -80,7 +80,7 @@ bool QgsShapeFile::scanGeometries()
QProgressDialog *sg = new QProgressDialog();
sg->setMinimum(0);
sg->setMaximum(0);
QString label = "Scanning ";
QString label = tr("Scanning ");
label += filename;
sg->setLabel(new QLabel(label));
sg->show();
@@ -561,7 +561,7 @@ void QgsSpit::import()

for ( std::vector<QString>::size_type k = 1; k < names_copy.size(); k++ )
{
QgsDebugMsg( tr("Checking to see if ") + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
QgsDebugMsg( QString("Checking to see if %1 == %2").arg(names_copy[ k ]).arg( names_copy[ k - 1 ] ) );
if ( names_copy[ k ] == names_copy[ k - 1 ] )
dupl += names_copy[ k ] + "\n";
}
@@ -645,7 +645,8 @@ void QgsSpit::import()
}

query = "SET SEARCH_PATH TO ";
if ( tblShapefiles->item( i, ColDBSCHEMA )->text() != "public" )
if ( !tblShapefiles->item( i, ColDBSCHEMA )->text().isEmpty() &&
tblShapefiles->item( i, ColDBSCHEMA )->text() != "public")
query += QgsPgUtil::quotedValue( tblShapefiles->item( i, ColDBSCHEMA )->text() ) + ",";
query += QgsPgUtil::quotedValue( "public" );
res = PQexec( conn, query.toUtf8() );

0 comments on commit d771755

Please sign in to comment.