saving a new database fails

Bug #765489 reported by Rob Thornton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vocab Builder
Fix Released
Critical
Rob Thornton

Bug Description

Saving a newly created database fails. However, opening an existing database and choosing 'save-as' will save a correct copy of the database, even when overwriting an existing file.

Tags: editor

Related branches

Changed in vbuilder:
importance: Undecided → Critical
assignee: nobody → Rob Thornton (rob-t-telus)
milestone: none → 1.0.x
Revision history for this message
Rob Thornton (rob-t-telus) wrote :

Both tables are being written. Language data is also being written. It seems that, when writing a new database only, some rows are skipped, namely the first one in each category and at least one category. Oddly, existing databases seem to be copied properly.

Changed in vbuilder:
status: New → Confirmed
Revision history for this message
Rob Thornton (rob-t-telus) wrote :

Getting results from a new treeview store which have not been initialized will produce a NULL result. sql_insert_wordset () expects that ALL values passed to it are non-null, however, only the category and the first character set of each language should be required. Change line #140 in src/lib/sqlite.c to:

if (!cat || !n1 || !s1)

Then, if the above fails the returned result (merge pending which adds this feature) the editor should report a warning or write a log entry (or both) letting the user know that a row, or rows, could not be written.

Changed in vbuilder:
status: Confirmed → Triaged
Changed in vbuilder:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.