From 5d9314f134ddd3dc4c853e398ac90ba247fb2e4f Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 13 Jun 2016 18:42:42 -0400 Subject: Imported Upstream version 3.1.0 --- Plugins/SqlExport/SqlExport_de.ts | 4 ++-- Plugins/SqlExport/SqlExport_es.ts | 4 ++-- Plugins/SqlExport/SqlExport_fr.qm | Bin 2904 -> 2900 bytes Plugins/SqlExport/SqlExport_fr.ts | 6 +++--- Plugins/SqlExport/SqlExport_it.qm | Bin 0 -> 23 bytes Plugins/SqlExport/SqlExport_it.ts | 4 ++-- Plugins/SqlExport/SqlExport_pl.ts | 4 ++-- Plugins/SqlExport/SqlExport_pt_BR.ts | 4 ++-- Plugins/SqlExport/SqlExport_ru.ts | 4 ++-- Plugins/SqlExport/SqlExport_sk.ts | 4 ++-- Plugins/SqlExport/SqlExport_zh_CN.qm | Bin 16 -> 589 bytes Plugins/SqlExport/SqlExport_zh_CN.ts | 4 ++-- Plugins/SqlExport/sqlexport.cpp | 38 +---------------------------------- 13 files changed, 20 insertions(+), 56 deletions(-) create mode 100644 Plugins/SqlExport/SqlExport_it.qm (limited to 'Plugins/SqlExport') diff --git a/Plugins/SqlExport/SqlExport_de.ts b/Plugins/SqlExport/SqlExport_de.ts index 5313de2..e61f506 100644 --- a/Plugins/SqlExport/SqlExport_de.ts +++ b/Plugins/SqlExport/SqlExport_de.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/SqlExport_es.ts b/Plugins/SqlExport/SqlExport_es.ts index 2ff1ffa..a3d552a 100644 --- a/Plugins/SqlExport/SqlExport_es.ts +++ b/Plugins/SqlExport/SqlExport_es.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/SqlExport_fr.qm b/Plugins/SqlExport/SqlExport_fr.qm index 6258242..5be0b78 100644 Binary files a/Plugins/SqlExport/SqlExport_fr.qm and b/Plugins/SqlExport/SqlExport_fr.qm differ diff --git a/Plugins/SqlExport/SqlExport_fr.ts b/Plugins/SqlExport/SqlExport_fr.ts index 02c2cbc..279dd99 100644 --- a/Plugins/SqlExport/SqlExport_fr.ts +++ b/Plugins/SqlExport/SqlExport_fr.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ -- Encodage texte utilisé: %1 - + Table name for INSERT statements is mandatory. Nom de table pour la déclaration INSERT est obligatoire. @@ -77,7 +77,7 @@ Generate "CREATE TABLE" statement at the begining - Genre la déclaration "CREATE TABLE" au debut + Genre la déclaration "CREATE TABLE" au debut diff --git a/Plugins/SqlExport/SqlExport_it.qm b/Plugins/SqlExport/SqlExport_it.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/Plugins/SqlExport/SqlExport_it.qm differ diff --git a/Plugins/SqlExport/SqlExport_it.ts b/Plugins/SqlExport/SqlExport_it.ts index 7f5368b..d53b3a2 100644 --- a/Plugins/SqlExport/SqlExport_it.ts +++ b/Plugins/SqlExport/SqlExport_it.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/SqlExport_pl.ts b/Plugins/SqlExport/SqlExport_pl.ts index 7c8a3f5..5eafc0b 100644 --- a/Plugins/SqlExport/SqlExport_pl.ts +++ b/Plugins/SqlExport/SqlExport_pl.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ -- Użyte kodowanie tekstu: %1 - + Table name for INSERT statements is mandatory. Nazwa tabeli dla zapytania INSERT jest obowiązkowa. diff --git a/Plugins/SqlExport/SqlExport_pt_BR.ts b/Plugins/SqlExport/SqlExport_pt_BR.ts index a781f3a..ec49ef0 100644 --- a/Plugins/SqlExport/SqlExport_pt_BR.ts +++ b/Plugins/SqlExport/SqlExport_pt_BR.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/SqlExport_ru.ts b/Plugins/SqlExport/SqlExport_ru.ts index b6b1cd8..20f808d 100644 --- a/Plugins/SqlExport/SqlExport_ru.ts +++ b/Plugins/SqlExport/SqlExport_ru.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ -- Использованная кодировка текста: %1 - + Table name for INSERT statements is mandatory. Имя таблицы для конструкций INSERT обязательно. diff --git a/Plugins/SqlExport/SqlExport_sk.ts b/Plugins/SqlExport/SqlExport_sk.ts index ef6a4bc..a10648c 100644 --- a/Plugins/SqlExport/SqlExport_sk.ts +++ b/Plugins/SqlExport/SqlExport_sk.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/SqlExport_zh_CN.qm b/Plugins/SqlExport/SqlExport_zh_CN.qm index be651ee..2a6959c 100644 Binary files a/Plugins/SqlExport/SqlExport_zh_CN.qm and b/Plugins/SqlExport/SqlExport_zh_CN.qm differ diff --git a/Plugins/SqlExport/SqlExport_zh_CN.ts b/Plugins/SqlExport/SqlExport_zh_CN.ts index c6c72de..2b62da0 100644 --- a/Plugins/SqlExport/SqlExport_zh_CN.ts +++ b/Plugins/SqlExport/SqlExport_zh_CN.ts @@ -1,6 +1,6 @@ - + SqlExport @@ -39,7 +39,7 @@ -- 文本编码:%1 - + Table name for INSERT statements is mandatory. diff --git a/Plugins/SqlExport/sqlexport.cpp b/Plugins/SqlExport/sqlexport.cpp index 15e47ed..0ae91ff 100644 --- a/Plugins/SqlExport/sqlexport.cpp +++ b/Plugins/SqlExport/sqlexport.cpp @@ -265,43 +265,7 @@ QString SqlExport::getNameForObject(const QString& database, const QString& name QStringList SqlExport::rowToArgList(SqlResultsRowPtr row) { - QStringList argList; - for (const QVariant& value : row->valueList()) - { - if (!value.isValid() || value.isNull()) - { - argList << "NULL"; - continue; - } - - switch (value.userType()) - { - case QVariant::Int: - case QVariant::UInt: - case QVariant::LongLong: - case QVariant::ULongLong: - argList << value.toString(); - break; - case QVariant::Double: - argList << QString::number(value.toDouble()); - break; - case QVariant::Bool: - argList << QString::number(value.toInt()); - break; - case QVariant::ByteArray: - { - if (db->getVersion() >= 3) // version 2 will go to the regular string processing - { - argList << "X'" + value.toByteArray().toHex().toUpper() + "'"; - break; - } - } - default: - argList << wrapString(escapeString(value.toString())); - break; - } - } - return argList; + return valueListToSqlList(row->valueList(), db->getDialect()); } void SqlExport::validateOptions() -- cgit v1.2.3