[Libreoffice-bugs] [Bug 108068] Can't change Primary Key's name with Firebird Embedded db.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu May 25 18:42:26 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108068

--- Comment #7 from Lionel Elie Mamane <lionel at mamane.lu> ---
(In reply to Julien Nabet from comment #4)
> Lionel: I thought about throwing with ::dbtools::throwSQLException (...)

> but don't know how to retrieve the error message from Firebird engine.

>From the error message you quoted from the console, we see that this message
comes from
http://opengrok.libreoffice.org/xref/core/connectivity/source/drivers/firebird/Util.cxx#52
so look there, we see it is function
firebird::StatusVectorToString
so that's your answer :)
See how it is called from


Throwing an SQLException is indeed in general the way to do that kind of
things. In general LibreOffice then has a decent dialog for the error message,
that shows the contents of the SQLException behind a "more" button (or
something like that).

Here, there's a mechanism that implements the
 The column "ID2" could not be changed.
message, that probably interferes with that. Possibly, the SQLException is
already thrown, but caught (and ignored) by that mechanism. Then, I think the
right thing to do is to change that dialog box to have the "more" button to
show the actual SQL error, like the default mechanism.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170525/c0fff720/attachment.html>


More information about the Libreoffice-bugs mailing list