diff --git a/fbexport/FBExport.cpp b/fbexport/FBExport.cpp index e29ae86..30cfdb6 100644 --- a/fbexport/FBExport.cpp +++ b/fbexport/FBExport.cpp @@ -54,6 +54,7 @@ #include #include +#include #include "ParseArgs.h" #include "FBExport.h" @@ -372,18 +373,25 @@ string FBExport::CreateHumanString(IBPP::Statement& st, int col) if (ar->ExportFormat == xefInserts && !numeric) { - string::size_type pos = string::npos; - while (true) - { - pos = value.find_last_of('\'', pos); - if (pos == string::npos) - break; - value.insert(pos, 1, '\''); - if (pos == 0) - break; - pos--; + stringstream stringBuilder; + stringBuilder << '\''; + for (int i=0; i