https://bugs.freedesktop.org/show_bug.cgi?id=71251

--- Comment #9 from Lionel Elie Mamane <[email protected]> ---
(In reply to comment #8)
> (In reply to comment #6)

>> Hmm... Could we fake BOOLEAN in the driver, if necessary? (Meaning, if
>> that's the problem). Maybe we could just do it like MySQL and at table
>> *creation* time, just map BOOLEAN to TINYINT(1) or something like that. (And
>> then, the table has a TINYINT(1) field, not a BOOLEAN field.)

> It shouldn't be that hard to fake it at creation time, and reading the field
> as a boolean would also work fine, however there is still the issue that
> when reading it won't present itself as a boolean, i.e. we wouldn't have the
> checkboxes etc. in the UI when editing table data directly (because Base
> thinks it's just an integer).

I think that's OK, although not optimal.

> However we could simply read whether there is a CHECK constraint in place
> every time we read a SMALLINT (that's the smallest datatype in firebird --
> there's no tinyint).

That would be even better. We can check whether the CHECK constraint is the one
that LibreOffice puts when faking BOOLEAN.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to