Re: [RDBO] SET support for MySQL

2006-11-16 Thread John Siracusa
The MySQL Set changes are in SVN. Both Rose::DB and Rose::DB::Object were updated. Please test, or forever hold your peace... :) -John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay p

Re: [RDBO] SET support for MySQL

2006-11-16 Thread Jonathan Vanasco
On Nov 16, 2006, at 2:16 AM, James Masters wrote: > I use ENUM sometimes. It seemed like a straightforward thing to me > (although I think either MySQL or my interface to it seems to have > trouble > with an enum option of the empty string). Leaving aside > portability, what > bad design pat

Re: [RDBO] SET support for MySQL

2006-11-15 Thread James Masters
> SET and ENUM in mysql are super dangerous. > They promote really bad design patterns and lock people > into MySQL > specific schema that is a "Complete Fucking Nightmare" to port to > another DB system. If people did a standard normalized schema, no > issues would occur when porting

Re: [RDBO] SET support for MySQL

2006-11-15 Thread Ask Bjørn Hansen
On Nov 15, 2006, at 19:42, Jonathan wrote: > SET and ENUM in mysql are super dangerous. > They promote really bad design patterns and lock people into MySQL > specific schema that is a "Complete Fucking Nightmare" to port to > another DB system. If people did a standard normalized sc

Re: [RDBO] SET support for MySQL

2006-11-15 Thread Ask Bjørn Hansen
On Nov 15, 2006, at 19:12, John Siracusa wrote: [...] > Ah ha! Hm, seems like an enum crossed with an array. Anyway, next > question: what about values with commas in them? "Officially not supported". > Blah, I just tried it. In typical MySQL fashion, it silently does > the wrong thing.

Re: [RDBO] SET support for MySQL

2006-11-15 Thread John Siracusa
On 11/15/06 10:42 PM, Jonathan wrote: > That said, supporting MySQL is a good thing to do. BUT since rose > tends to focus people on doing stuff more intelligently, I would > suggest that the "SET" support require people to set a global > Rose::DB variable ( $Rose::DB::enable_mysql_set = 1; ) in o

Re: [RDBO] SET support for MySQL

2006-11-15 Thread Jonathan
On Nov 15, 2006, at 10:12 PM, John Siracusa wrote: > Ah ha! Hm, seems like an enum crossed with an array. Anyway, next > question: what about values with commas in them? Blah, I just > tried it. In > typical MySQL fashion, it silently does the wrong thing. > > Well whatever, "it's your fune

Re: [RDBO] SET support for MySQL

2006-11-15 Thread John Siracusa
On 11/15/06 9:55 PM, Ask Bjørn Hansen wrote: > On Nov 15, 2006, at 18:35, John Siracusa wrote: >> Does MySQL actually have native SET support? > > Yes, > > http://dev.mysql.com/doc/refman/5.0/en/set.html > http://dev.mysql.com/tech-resources/articles/mysql-set-datatype.html Ah ha! Hm, seems lik

Re: [RDBO] SET support for MySQL

2006-11-15 Thread John Siracusa
On 11/15/06 10:04 PM, Darren Duncan wrote: > AFAIK, MySQL has had support for a set-like type > for a long time; as it has also had support for > an ENUM type. I think enums are much older than sets in MySQL. RDBO already has enum support for MySQL. -John -

Re: [RDBO] SET support for MySQL

2006-11-15 Thread Darren Duncan
At 9:35 PM -0500 11/15/06, John Siracusa wrote: >On 11/15/06 9:12 PM, Ask Bjørn Hansen wrote: >> Anyway, below is a small addition (without tests) to Rose::DB::MySQL >> to add support for SET columns. > >Does MySQL actually have native SET support? If not, what does this feature >get you beyond

Re: [RDBO] SET support for MySQL

2006-11-15 Thread Ask Bjørn Hansen
On Nov 15, 2006, at 18:35, John Siracusa wrote: > Does MySQL actually have native SET support? Yes, http://dev.mysql.com/doc/refman/5.0/en/set.html http://dev.mysql.com/tech-resources/articles/mysql-set-datatype.html - ask -- http://www.askbjoernhansen.com/

Re: [RDBO] SET support for MySQL

2006-11-15 Thread John Siracusa
On 11/15/06 9:12 PM, Ask Bjørn Hansen wrote: > Anyway, below is a small addition (without tests) to Rose::DB::MySQL > to add support for SET columns. Does MySQL actually have native SET support? If not, what does this feature get you beyond the Array column type, which is already emulated for MyS