On Sep 12, 11:08 am, Yi Wen <[EMAIL PROTECTED]> wrote:
> When I declare a schema, I want to use "string", not "varchar" for
> create a varchar type. The reason is I want to keep my code to be
> database independent (mysql should map string to VARCHAR(255), while
> ORACLE should map string to VARCHAR2(255), for example).
>
> Poking around the source code, I found out a TYPES hash in the code
> can be used, but it's almost empty. Am I supposed to build my own
> TYPES hash according to different DBMS? or there is some configuration
> I can do?

Sequel doesn't make much of an attempt to convert data types.  Other
than converting double to double precision, it just gives the database
what you give it.  To do what you want, you'll want to override
Database#type_literal in each database subclass you want to support.

Jeremy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to