Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Today we have to explicitly cast the param for stringtolob. And param spec is not allowed for filetolob().
>>prepare s from insert into tblob values (stringtolob(cast(? as varchar(10))));
--- SQL command prepared.
>>
insert into tlobfile values (1, filetolob(cast(? as varchar(256))));
^ (46 characters from start of SQL statement)
-
-
- ERROR[8822] The statement was not prepared.
-
>>prepare s from update tblob set a = stringtolob(cast(? as varchar(10)), append);
— SQL command prepared.
>>
Fix both to allow syntax like this :
>>prepare s from insert into tlob values (1, stringtolob);
-
-
- ERROR[4221] The operand of function LOBINSERT must be CHARACTER.
-
-
-
- ERROR[8822] The statement was not prepared.
-