ZQ <zim...@gmail.com> writes: > On Mon, Mar 29, 2010 at 9:41 AM, Stewart Smith > <stew...@flamingspork.com>wrote: > >> On Sun, 28 Mar 2010 12:04:46 -0700, Brian Aker <br...@tangent.org> wrote: >> > On Mar 28, 2010, at 2:28 AM, Zimin wrote: >> > >> > > As I see from the MySQL side, there is a connect string for this >> > > 'create table' statement. But I don't find it's in Drizzle. Am I >> > > right? And what's the usual practice to do such task? >> > >> > The interface in the parser needs to be changes to key/pair that can >> > then be passed down and verified in the Storage Engine. >> >> Have you managed to look at my parser bits for this yet? IIRC it was >> adding another shift/reduce conflict, and we don't like those... so was >> hoping you had some magic solution. >> >> > I've been looking into this branch tree these days and managed to solve the > shift/reduce conflict newly introduced. > originally, create_table_option ::= ENGINE_SYM equal ident_or_text | > indent_or_text equal ident_or_text | etc...
> Besides, I would like to hear from you what the custom table options finally > should shape into. passing key-value pair from parser down to storage engine > and other requirements? Sorry, I have not followed the thread from the beginning, but just wanted to point to a MariaDB feature that seems quite similar or at least related: http://askmonty.org/wiki/Manual:Extending_CREATE_TABLE This is in MariaDB 5.2, and allows a storage engine to register arbitrary key=value options it understands in CREATE TABLE. Options can be specified for the table, for a column, or for an index (and I think Serg is working on something for partitions). I do not know if this can be used by Drizzle, but if nothing else it might serve as inspiration. There was quite a lot of interest in something like this at the storage engine summit we held the day after the UC. Hope this helps, - Kristian. _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : drizzle-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp