Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-04 Thread Adriano dos Santos Fernandes
On 05/08/2020 12:48, Ivan Přenosil wrote: > In FB2.5 I sometimes construct exception messages with newline like this >   EXCEPTION E_ERROR 'msg-á' || x'0A0D' || 'msg-é'; > > In FB3 and FB4 it can cause error >   Statement failed, SQLSTATE = 22000 >   Malformed string >   -At block line: 4, col: 3 >

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-04 Thread Ivan Přenosil
Dne 04.09.2020 v 12:57 Alex Peshkoff via Firebird-devel napsal(a): Not reproduced: SQL> CREATE DATABASE '~/testDB.fdb' USER 'SYSDBA' PASSWORD 'masterkey' DEFAULT CHARACTER SET WIN1250; SQL> CREATE EXCEPTION  E_ERROR 'err'; SQL> SQL> set term ^; SQL> EXECUTE BLOCK AS CON> BEGIN CON>   EXCEPTI

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-04 Thread Dimitry Sibiryakov
04.09.2020 12:57, Alex Peshkoff via Firebird-devel wrote: Not reproduced: You forgot "set names win1250" at the beginning of the script. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-04 Thread Alex Peshkoff via Firebird-devel
On 2020-08-05 18:48, Ivan Přenosil wrote: In FB2.5 I sometimes construct exception messages with newline like this   EXCEPTION E_ERROR 'msg-á' || x'0A0D' || 'msg-é'; In FB3 and FB4 it can cause error   Statement failed, SQLSTATE = 22000   Malformed string   -At block line: 4, col: 3 Problem is

Re: [Firebird-devel] BlobWrapper and sizes

2020-09-04 Thread Alex Peshkoff via Firebird-devel
On 2020-08-10 17:33, Dimitry Sibiryakov wrote: Hello All.   BlobWrapper::getSize() uses SLONG for total size parameter but getData() uses FB_SIZE_T for the same purpose. Shouldn't they match? Should better both be ULONG - like blb_length / blh_length. Firebird-Devel mailing list, web in