1 Jul 2009 03:54
Re: Should storm have separate String and Blob datatypes?
This issue came up because our app only supports ASCII strings, not unicode. Currently we use the RawStr property for attributes mapped to SQL Server VARCHAR fields, which has been working fine for us with the MS SQL backend. Howevever, we're working toward Oracle compatibility now for our app (while still continuing MS SQL support), and we're finding that RawStr isn't appropriate for VARCHAR since RawStr needs to be hexified to support BLOB. We're discussing creating an Ascii property to use for mapping to VARCHAR. Is that the best approach, or does anyone have a different recommendation? Thanks! -- -- Brad Allen ZeOmega Open Minds' Open Solutions 3010 Gaylord Parkway, Ste. 210 Frisco TX, 75034 http://www.zeomega.com
That said, here are some issues that may pop up if you're switching
from the current Oracle branch:
* Binary data is no longer encoded as base64. Instead, the data will
be hexlified, as Oracle expects binary data.
* The back end now requires cx_Oracle >= 5. This is because
cx_Oracle 5 makes type handling much easier by way of input type
handlers and output type handlers.
* For ORA-08177 (a DatabaseError), the back end will now raise an
OperationalError with the message 'database is locked' as storm
expects.
* The back end now keeps its own store of reserved words and escapes
them in mostly the same manner as storm itself does. I did this
because the reserved word list in storm is a bit dated (from SQL 92)
and contains 159 words that aren't reserved in Oracle 10g. For
reference, Oracle 10g has about 66 reserved words.
Some other things I've added:
* Support for connecting using a TNS name.
* "Isolation contexts" - essentially a way to temporarily put the
database in read committed mode temporarily using a with statement. I
RSS Feed