mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
remove old MySQL and PostgreSQL versions support leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9aef95dd6c
commit
2dd6d202bb
2 changed files with 0 additions and 16 deletions
|
@ -1116,11 +1116,6 @@ void tst_QSqlDatabase::bug_249059()
|
|||
QSqlDatabase db = QSqlDatabase::database(dbName);
|
||||
CHECK_DATABASE(db);
|
||||
|
||||
QString version=tst_Databases::getPSQLVersion( db );
|
||||
double ver=version.section(QChar::fromLatin1('.'),0,1).toDouble();
|
||||
if (ver < 7.3)
|
||||
QSKIP("Test requires PostgreSQL >= 7.3", SkipSingle);
|
||||
|
||||
QSqlQuery q(db);
|
||||
const QString tableName(qTableName("bug_249059", __FILE__));
|
||||
QVERIFY_SQL(q, exec(QString("CREATE TABLE %1 (dt timestamp, t time)").arg(tableName)));
|
||||
|
@ -1436,11 +1431,6 @@ void tst_QSqlDatabase::mysql_multiselect()
|
|||
const QString qtest(qTableName("qtest", __FILE__));
|
||||
|
||||
QSqlQuery q(db);
|
||||
QString version=tst_Databases::getMySqlVersion( db );
|
||||
double ver=version.section(QChar::fromLatin1('.'),0,1).toDouble();
|
||||
if (ver < 4.1)
|
||||
QSKIP("Test requires MySQL >= 4.1", SkipSingle);
|
||||
|
||||
QVERIFY_SQL(q, exec("SELECT * FROM " + qtest + "; SELECT * FROM " + qtest));
|
||||
QVERIFY_SQL(q, next());
|
||||
QVERIFY_SQL(q, exec("SELECT * FROM " + qtest + "; SELECT * FROM " + qtest));
|
||||
|
@ -1629,8 +1619,6 @@ void tst_QSqlDatabase::mysql_savepointtest()
|
|||
QFETCH(QString, dbName);
|
||||
QSqlDatabase db = QSqlDatabase::database(dbName);
|
||||
CHECK_DATABASE(db);
|
||||
if ( db.driverName().startsWith( "QMYSQL" ) && tst_Databases::getMySqlVersion( db ).section( QChar('.'), 0, 1 ).toDouble()<4.1 )
|
||||
QSKIP( "Test requires MySQL >= 4.1", SkipSingle );
|
||||
|
||||
QSqlQuery q(db);
|
||||
QVERIFY_SQL(q, exec("begin"));
|
||||
|
|
|
@ -1067,8 +1067,6 @@ void tst_QSqlQuery::isNull()
|
|||
|
||||
|
||||
// test whether we can fetch values with more than DOUBLE precision
|
||||
// note that MySQL's 3.x highest precision is that of a double, although
|
||||
// you can define field with higher precision
|
||||
void tst_QSqlQuery::precision()
|
||||
{
|
||||
QFETCH( QString, dbName );
|
||||
|
@ -2562,8 +2560,6 @@ void tst_QSqlQuery::QTBUG_5765()
|
|||
QFETCH( QString, dbName );
|
||||
QSqlDatabase db = QSqlDatabase::database( dbName );
|
||||
CHECK_DATABASE( db );
|
||||
if ( tst_Databases::getMySqlVersion( db ).section( QChar('.'), 0, 1 ).toFloat()<4.1 )
|
||||
QSKIP( "Test requires MySQL >= 4.1", SkipSingle );
|
||||
|
||||
QSqlQuery q(db);
|
||||
const QString tableName(qTableName("bug5765", __FILE__));
|
||||
|
|
Loading…
Add table
Reference in a new issue