List:MySQL and Java« Previous MessageNext Message »
From:Mark Matthews Date:February 11 2003 4:14am
Subject:Re: Blobs and SQL Locator
View as plain text  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Baxter wrote:
> Are there any plans for a complete implementation of Blob in the 
> Connector/J package? Specifically, getBytes and setBytes?
> 
> I could find no reference to any plans for SQL Locators on the MySQL 
> web-site, without which we're not likely to get the full Blob either. 
> 
> Cheers,
> 
> Jonathan 
> 
> 

Until the server itself supports locators, setBytes() can't be 
implemented efficiently. It is possible for Connector/J to implement 
this, if there is enough interest (I can put it on my feature list for 
3.1). However, you'll still have to pass the Blob instance back into an 
updatable result set, or a PreparedStatement to persist it. This is 
still JDBC-compliant, as DatabaseMetaData returns true for 
locatorsUpdateCopy().

	-Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.1.90 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+SGqjlyjUJM+7nP4RAuH6AJ9EfDVPfEBR6I6qnr0tsRlut+qLagCfcvwS
rC0JuA1zBz4NsyIArutxMUw=
=35Dz
-----END PGP SIGNATURE-----

Thread
Re: JDBC Interface for Embedded Server ?Nigel Wetters6 Feb
  • RE: JDBC Interface for Embedded Server ?Shankar Unni7 Feb
    • Re: JDBC Interface for Embedded Server ?Mark Matthews9 Feb
    • Blobs and SQL LocatorJonathan Baxter9 Feb
      • Re: Blobs and SQL LocatorMark Matthews11 Feb
        • Re: Blobs and SQL LocatorJonathan Baxter11 Feb
  • RE: JDBC Interface for Embedded Server ?Peter Schäfer8 Feb