Show error when can not switch to data view for tables
ClosedPublic

Authored by jfita on Apr 29 2020, 6:42 PM.

Details

Summary

This could happen when someone creates a table with a reserved SQL
keyword, such as “table”: KDb could not create the cursor because it
does not yet support escaping such keywords.

The issue was that KexiDataTableView::setData ignored the return value
of KexiDataScrollArea. Probably because it is a slot, but in this case
it is called as a “regular” function and it is possible to retrieve its
return value.

FIXED-IN:3.2.1

Diff Detail

Repository
R71 Kexi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jfita created this revision.Apr 29 2020, 6:42 PM
Restricted Application added a project: KEXI. · View Herald TranscriptApr 29 2020, 6:42 PM
Restricted Application added a subscriber: Kexi-Devel-list. · View Herald Transcript
jfita requested review of this revision.Apr 29 2020, 6:42 PM
staniek accepted this revision.May 2 2020, 11:42 AM

Good job!

This revision is now accepted and ready to land.May 2 2020, 11:42 AM
This revision was automatically updated to reflect the committed changes.