I'm trying to run a SQL query in my Firebird database. I've restored a backup in my local development environment.
My error is the following:
echo "SELECT STRTOINT('3') FROM MyTable;" | isql-fb /var/lib/firebird/3.0/data/dbname.fdb
Statement failed, SQLSTATE = 39000
invalid request BLR at offset 36
-function STRTOINT is not defined
-module name or entrypoint could not be found
To check if the function exists i run this:
echo 'SELECT RDB$FUNCTION_NAME FROM RDB$FUNCTIONS;' | isql-fb /var/lib/firebird/3.0/data/dbname.fdb | grep STRTOINT
STRTOINT
How to call the function correctly? Any hints are welcome!