bug fix: process bar & charset decode master
authorU-QUAN-W4\Administrator <Administrator@QUAN-W4.(none)>
Mon, 29 Mar 2010 12:38:16 +0000 (20:38 +0800)
committerU-QUAN-W4\Administrator <Administrator@QUAN-W4.(none)>
Mon, 29 Mar 2010 12:38:16 +0000 (20:38 +0800)
pgadmin/frm/frmImport.cpp
pgadmin/utils/pgcsvfile.cpp

index 658a1fa6fc97ad4ffaeae248e47fe13af0e78b5b..e39271aceafb5e2945385b282088f9f15370d856 100755 (executable)
@@ -1477,7 +1477,7 @@ void frmImport::ImportData()
     //bool logwarn = chkLogWarn->GetValue();\r
     bool logstmt = chkLogStmt->GetValue();\r
     bool loginfo = chkLogInfo->GetValue();\r
-    bool logproc = chkLogInfo->GetValue();\r
+    bool logproc = chkLogProc->GetValue();\r
 \r
     int impmode = (int)chcImportMode->GetClientData(chcImportMode->GetSelection());\r
     int impdest = (int)chcImpDest->GetClientData(chcImpDest->GetSelection());\r
index 7a7459f7ddec3debd7de1efc208340dff3d65c23..a283ceafdf64defc4847125a3389e5cf21979dfe 100755 (executable)
@@ -2557,6 +2557,7 @@ bool pgCSVFile::NextLine(wxString& linedata, wxString**& linevals, int &valsnum)
             parsedrs = wxInvalidOffset;\r
             m_curfilecont.Empty();\r
             m_parsedoffset = 0;\r
+            parsedoffset = 0;\r
             m_baseoffset = TellI();\r
         }\r
         else if (m_delimitedbychar)\r