firebird icon indicating copy to clipboard operation
firebird copied to clipboard

4.0.2 : bin_and not avaiable

Open drcrck opened this issue 3 years ago • 4 comments

Hi, i have error with last stable release versione with "bin_and" command. it seems not available. (it's used by Firedac in Delphi in some way to get metadata.)

in 4.0.1 it's all ok.

drcrck avatar Oct 03 '22 08:10 drcrck

Works OK:

SQL> show version;
ISQL Version: WI-V4.0.2.2816 Firebird 4.0
Server version:
Firebird/Windows/AMD/Intel/x64 (access method), version "WI-V4.0.2.2816 Firebird 4.0"
on disk structure version 13.0
SQL>
SQL> select bin_and(15, 3) from rdb$database;

     BIN_AND
============
           3

Do you have a test case ?

hvlad avatar Oct 03 '22 08:10 hvlad

Hi, it seems related to some of out FDB files. with some DBs it works, with others no

ISQL Version: WI-V4.0.1.2692 Firebird 4.0
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect db;
Server version:
WI-V4.0.1.2692 Firebird 4.0
Database: db, User: DIEGO
SQL> select bin_and(15, 3) from rdb$database;
Statement failed, SQLSTATE = 39000
invalid request BLR at offset 36
-function BIN_AND is not defined
-module name or entrypoint could not be found
SQL>
SQL> connect c:\db\xxx\xxxx.fdb;
Server version:
WI-V4.0.1.2692 Firebird 4.0
Database: c:\db\xxx\xxxx.fdb, User: DIEGO
SQL> select bin_and(15, 3) from rdb$database;

     BIN_AND
============
           3

drcrck avatar Oct 03 '22 10:10 drcrck

You have BIN_AND defined as UDF in some databases, thus the issue.

dyemanov avatar Oct 03 '22 10:10 dyemanov

You have BIN_AND defined as UDF in some databases, thus the issue.

i'll check thanks!

drcrck avatar Oct 03 '22 10:10 drcrck