IMessageMetadata->getField()

8 views
Skip to first unread message

Dimitry Sibiryakov

unread,
Oct 21, 2022, 2:48:17 PM10/21/22
to Firebird Developers List
Hello All,

are getField(), getOwner(), etc, allowed to return nullptr?

The code in Replicator checks for it but code in isql doesn't and may crash
if nullptr is returned.

--
WBR, SD.

Alex Peshkoff

unread,
Oct 24, 2022, 4:14:07 AM10/24/22
to firebir...@googlegroups.com
Can and does return - in an error case.
I checked particular getField(). 3 of 4 times it's used with check for
an error, last use is in printf which checks for NULLs itself.


Dimitry Sibiryakov

unread,
Oct 24, 2022, 5:28:21 AM10/24/22
to firebir...@googlegroups.com
'Alex Peshkoff' via firebird-devel wrote 24.10.2022 10:14:
> Can and does return - in an error case.

Errors is a simple case, I mean normally, for example for unnamed parameters
or constructed by the builder when the names are empty or never set.

--
WBR, SD.

Alex Peshkoff

unread,
Oct 24, 2022, 5:31:35 AM10/24/22
to firebir...@googlegroups.com
In the worse case - empty string.


Reply all
Reply to author
Forward
0 new messages