Subject | Re: [firebird-support] How to store a string in Firebird which includes #0's in it? |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2018-08-04T08:54:23Z |
04.08.2018 0:49, Chuck Belanger phytotech@... [firebird-support] wrote:
all. Just keep access rights as one record per table and user:
CREATE TABLE rights (user INTEGER, table INTEGER, allowed BOOLEAN)
--
WBR, SD.
> The above string is created andUse field (VAR)CHAR CHARACTER SET OCTETS. Then "just store" your string.
> stored in a string just as you see it, but how do I store it in Firebird
> , preferably as-is in a table field?
> I have tried rawbytestring but that truncates the string at the first #0It is a problem on client side, either in your program on in IBO.
> character, thus losing the information in the '0' (or some other
> character) that follows.
> My only solution right now is to create a new table in a one:manyIt would be a right solution if you made one step further and forget about bitmasks at
> relation, such that I can have more than one record per Access code.
all. Just keep access rights as one record per table and user:
CREATE TABLE rights (user INTEGER, table INTEGER, allowed BOOLEAN)
--
WBR, SD.