diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-28 22:39:03 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-01 18:52:15 +0200 |
commit | 4db2f067f164429a6f1054b06b297de26e4c7e88 (patch) | |
tree | 5774f431e13615ca3bd827a4bbb154d7b0db64cb /src/plugins/sqldrivers/ibase/qsql_ibase_p.h | |
parent | 8ab3b54fb7038477b9f5d366bcdcdb173e01e219 (diff) |
Force the ibase plugin to use utf8
Firebird supports utf8 properly since version 2.0
(released some time before 2012), so force the client
encoding to it, and remove the QTextCodec related code.
Remove pre Firebird 2.0 code paths at the same time
and add an assertion to test that we have recent enough
client APIs.
Change-Id: I4c23e23f2fb1b4f550eaca63c47587fe9aaf3a6d
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/ibase/qsql_ibase_p.h')
-rw-r--r-- | src/plugins/sqldrivers/ibase/qsql_ibase_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/sqldrivers/ibase/qsql_ibase_p.h b/src/plugins/sqldrivers/ibase/qsql_ibase_p.h index 295f6c0cec..82a0ab8e4d 100644 --- a/src/plugins/sqldrivers/ibase/qsql_ibase_p.h +++ b/src/plugins/sqldrivers/ibase/qsql_ibase_p.h @@ -60,6 +60,8 @@ #define Q_EXPORT_SQLDRIVER_IBASE Q_SQL_EXPORT #endif +static_assert(FB_API_VER >= 20, "Qt requires at least the Firebird 2.0 client APIs."); + QT_BEGIN_NAMESPACE class QSqlResult; |