summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/mysql/qsql_mysql.h
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2009-04-15 10:16:48 +1000
committerabcd <qt-info@nokia.com>2009-04-15 10:16:48 +1000
commitbb7bddc47dd0748b45d22180d9e3c8e5209010b3 (patch)
treea0f6fb8bb72ba54e626b25f5d34c926aace9c13b /src/sql/drivers/mysql/qsql_mysql.h
parenta94b601866740e483f093233f59f43b022a68735 (diff)
Fix the behaviour of sql classes regarding quoted identifiers
If no quotes around identifiers are provided by the programmer, identifiers are treated identically to how the underlying engine would behave. i.e. some engines uppercase the identifiers others lowercase them. If the programmer wants case sensitivty and/or use whitespaces they will need to quote their identifiers. The previous (incorrect) behaviour always quoted the identifiers. Reviewed-by: Bill King
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.h')
-rw-r--r--src/sql/drivers/mysql/qsql_mysql.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sql/drivers/mysql/qsql_mysql.h b/src/sql/drivers/mysql/qsql_mysql.h
index 97aa346025..31d9dcf731 100644
--- a/src/sql/drivers/mysql/qsql_mysql.h
+++ b/src/sql/drivers/mysql/qsql_mysql.h
@@ -123,6 +123,9 @@ public:
QVariant handle() const;
QString escapeIdentifier(const QString &identifier, IdentifierType type) const;
+protected Q_SLOTS:
+ bool isIdentifierEscapedImplementation(const QString &identifier, IdentifierType type) const;
+
protected:
bool beginTransaction();
bool commitTransaction();