Binary constants longer than 64K
--------------------------------

                 Key: CORE-5821
                 URL: http://tracker.firebirdsql.org/browse/CORE-5821
             Project: Firebird Core
          Issue Type: New Feature
          Components: Engine
    Affects Versions: 4.0 Beta 1
            Reporter: Nick


Example:
insert into T(BinaryBlob) values(x'DF******');
Now it works, but length of constant is limited (< 64K)
This will allow to export long blob data to script.

Workaround is splitting data to parts (~64K per one part ):
insert into T(BinaryBlob) values(
  cast('' as blob sub_type binary) || 
  x'AF******' ||
  x'D7******' ||
  x'B8******' ||
);

This ugly workaround allows to insert blob of large size (up to ~5MB, because 
maximum SQL size is restricted to 10 MB)




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to