Error: gds__alloc: non-positive size allocation request

Abstract: Error: gds__alloc: non-positive size allocation request

    Q.

I'm seeing the following error in InterBase.log:

gds__alloc: non-positive size allocation request

What does it mean?

    A.

This error occurs with InterBase 2007 when you insert into a blob using the text to blob feature and the text is larger than 32K. Note that blobs larger than 32K can be inserted with no errors using a parameterized query.

Example to demonstrate the problem:

create table foo (f1 blob);
insert into foo values ('greater than 32K worth of data here');