We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found and fix the error of doesn't update or delete if primary key is string.
I solved this issue as below:
sqlgeneratorbase.cpp
*QString SqlGeneratorBase::updateRecord(Table t, QString tableName)
sql = QString("UPDATE %1 SET %2 WHERE %3=%4") .arg(tableName) .arg(values.join(", ")) .arg(key) .arg(val.type() == QVariant::String ? "\'" + val.toString() + "\'" : val.toString());
*QString SqlGeneratorBase::deleteRecord(Table t, QString tableName)
QString sql = QString("DELETE FROM %1 WHERE %2='%3'") .arg(tableName) .arg(t->primaryKey()) .arg(val.type() == QVariant::String ? "\'" + val.toString() + "\'" : val.toString());
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found and fix the error of doesn't update or delete if primary key is string.
I solved this issue as below:
sqlgeneratorbase.cpp
*QString SqlGeneratorBase::updateRecord(Table t, QString tableName)
*QString SqlGeneratorBase::deleteRecord(Table t, QString tableName)
The text was updated successfully, but these errors were encountered: