From cecf681620e4911a70e02884fe03fea15b73b558 Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Fri, 10 Apr 2015 08:55:56 +0200 Subject: [PATCH] edittabledialg: table without rowid don't have to be integer pk columns --- src/EditTableDialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index daaee36b..2d4a723c 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -546,13 +546,12 @@ void EditTableDialog::setWithoutRowid(bool without_rowid) { // Before setting the without rowid flag, first perform a check to see if the table meets all thr required criteria for without rowid tables int pk = m_table.findPk(); - if(pk == -1 || m_table.fields().at(pk)->isInteger() == false || m_table.fields().at(pk)->autoIncrement()) + if(pk == -1 || m_table.fields().at(pk)->autoIncrement()) { QMessageBox::information(this, QApplication::applicationName(), tr("Please add a field which meets the following criteria before setting the without rowid flag:\n" " - Primary key flag set\n" - " - Auto incremenct disabled\n" - " - Type INTEGER")); + " - Auto incremenct disabled")); ui->checkWithoutRowid->setChecked(false); return; }