logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Custom types / "long" datatypes in custom functions: msg#00284

apache.db.derby.devel

Subject: Re: Custom types / "long" datatypes in custom functions

David Blasby wrote:

> Unfortunately, the maximum size for varchar is only 32k. Spatial data
> is commonly much much larger than this. "LONG VARCHAR FOR BIT DATA"
> would be acceptable for storage, but you are unable to pass this to a
> user-defined function (or return one).

And unfortunately LONG VARCHAR FOR BIT DATA isn't much better, still
limited at around 32k. Though both those limits could be removed fairly
easily.

The issue with passing LONG VARCHAR FOR BIT DATA and BLOB into functions
is that types that need to be passed and returned are
java.io.InputStream and java.sql.Blob respectively. Derby can return
them for java.sql.ResultSet getBinaryStream and gteBlob but the logic is
contained in the ResultSet implementation. I think that the logic from
EmbedResultSet would need to move into the type system, e.g. SQLBlob.

> Are "VARCHAR FOR BIT DATA" represented by a String type or a byte[]?

byte[]

Dan.





<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo