Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread M.-A. Lemburg
Ian Bicking wrote: > Carsten Haese wrote: >> I agree that if we decide to abolish (py)format, we should help out >> module authors for databases that don't natively support '?' by >> providing example code for performing the necessary parsing. > > When using a higher-level SQL generator the parsin

[DB-SIG] SQL-API

2006-04-19 Thread Ian Bicking
Hi guys. So, I've been meaning to bring this up here, and what with the param marker discussions... Anyway, while doing the SQLObject 2 rewrite I wanted to extract some of the machinery that has nothing to do with ORM stuff. The result is SQL-API: http://sqlobject.org/sqlapi/ Instead of fixi

Re: [DB-SIG] Is there a fox pro substitute for linux?

2006-04-19 Thread Python
On Wed, 2006-04-19 at 09:56 -0500, Lukasz Szybalski wrote: > Hello again, > Not sure if this is a right place to ask this but is there a "fox pro" > substitute in Linux or a program that would act in a similar way but > be platform independent (Linux,mac,win)? > > Fox pro aka, GUI way to design la

Re: [DB-SIG] Is there a fox pro substitute for linux?

2006-04-19 Thread Leif B. Kristensen
On Wednesday 19 April 2006 16:56, Lukasz Szybalski wrote: >Hello again, >Not sure if this is a right place to ask this but is there a "fox pro" >substitute in Linux or a program that would act in a similar way but >be platform independent (Linux,mac,win)? > >Fox pro aka, GUI way to design layout fo

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Ian Bicking
Carsten Haese wrote: > On Wed, 2006-04-19 at 11:38, Gerhard Häring wrote: > >>Abolishing (py)format certainly means additional work for the module >>authors. If we do so - I haven't read the whole thread, so I don't know >>what the arguments are for it - then we should include example code in >

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Carsten Haese
On Wed, 2006-04-19 at 11:38, Gerhard Häring wrote: > Abolishing (py)format certainly means additional work for the module > authors. If we do so - I haven't read the whole thread, so I don't know > what the arguments are for it - then we should include example code in > the DB-API for parsing qm

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Gerhard Häring
M.-A. Lemburg wrote: > [...] > If that's the case, then I suppose supporting qmark style > wouldn't be too much of a problem. It's doable, but it requires parsing the SQL, i. e. find all the qmarks that are not inside SQL string literals. Databases like MySQL, PostgreSQL (*) and SQLite 2.x don't

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Ian Bicking
M.-A. Lemburg wrote: >>The ones I know about (pysqlite 1.x, pyPgSQL, psycopg, MySQLdb) all only >>look at the Python values, not at the pyformat format character for >>deciding how to bind the variable. > > > If that's the case, then I suppose supporting qmark style > wouldn't be too much of a

Re: [DB-SIG] Is there a fox pro substitute for linux?

2006-04-19 Thread M.-A. Lemburg
Lukasz Szybalski wrote: > Hello again, > Not sure if this is a right place to ask this but is there a "fox pro" > substitute in Linux or a program that would act in a similar way but > be platform independent (Linux,mac,win)? > > Fox pro aka, GUI way to design layout for database results, drug and

Re: [DB-SIG] Is there a fox pro substitute for linux?

2006-04-19 Thread Peter L. Buschman
Check out Dabo :) http://dabodev.com/ --PLB At 16:56 19.4.06, Lukasz Szybalski wrote: >Hello again, >Not sure if this is a right place to ask this but is there a "fox pro" >substitute in Linux or a program that would act in a similar way but >be platform independent (Linux,mac,win)? > >Fox pro

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread M.-A. Lemburg
Carsten Haese wrote: > On Wed, 2006-04-19 at 10:20, M.-A. Lemburg wrote: >> Carsten Haese wrote: >>> On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: I've found the qmark style to be sufficient for everything >>> I agree. Considering that many modules already support qmark, and those >>> that

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread M.-A. Lemburg
Gerhard Häring wrote: > M.-A. Lemburg wrote: >> Carsten Haese wrote: >> >>> On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: >>> I've found the qmark style to be sufficient for everything >>> I agree. Considering that many modules already support qmark, and those >>> that currently use 'forma

[DB-SIG] Is there a fox pro substitute for linux?

2006-04-19 Thread Lukasz Szybalski
Hello again, Not sure if this is a right place to ask this but is there a "fox pro" substitute in Linux or a program that would act in a similar way but be platform independent (Linux,mac,win)? Fox pro aka, GUI way to design layout for database results, drug and drop, adjust size by mouse, create

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Carsten Haese
On Wed, 2006-04-19 at 10:20, M.-A. Lemburg wrote: > Carsten Haese wrote: > > On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: > >> I've found the qmark style to be sufficient for everything > > > > I agree. Considering that many modules already support qmark, and those > > that currently use 'for

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Dittmar, Daniel
>On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: >> I've found the qmark style to be sufficient for everything This is more about convenience (same as Python positional arguments vs. keyword arguments). Celko's book on SQL tree structures is full of examples using :names, with the same name appe

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Gerhard Häring
M.-A. Lemburg wrote: > Carsten Haese wrote: > >>On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: >> >>>I've found the qmark style to be sufficient for everything >> >>I agree. Considering that many modules already support qmark, and those >>that currently use 'format'/'pyformat' would have to mov

Re: [DB-SIG] mysql string length?

2006-04-19 Thread Lukasz Szybalski
On 4/19/06, Andy Todd <[EMAIL PROTECTED]> wrote: > Lukasz Szybalski wrote: > > On 4/18/06, Lukasz Szybalski <[EMAIL PROTECTED]> wrote: > >> On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> On Mon, 17 Apr 2006, Andy Todd wrote: > >>> > > stmt = "INSERT INTO table_x (body) VALUE

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread M.-A. Lemburg
Carsten Haese wrote: > On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: >> I've found the qmark style to be sufficient for everything > > I agree. Considering that many modules already support qmark, and those > that currently use 'format'/'pyformat' would have to move to something > else if thes

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread Carsten Haese
On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote: > I've found the qmark style to be sufficient for everything I agree. Considering that many modules already support qmark, and those that currently use 'format'/'pyformat' would have to move to something else if these are dropped, I'd like to sugge

Re: [DB-SIG] paramstyles (mysql string length?)

2006-04-19 Thread M.-A. Lemburg
Andy Todd wrote: > Once more, %s is simply a marker in the statement you provide to the > execute method which says "substitute the next item from the tuple I've > provided here please". It is not string substitution. > > Now hands up for changing the DB-API to remove the pyformat paramstyle? >

Re: [DB-SIG] mysql string length?

2006-04-19 Thread Carsten Haese
On Wed, 2006-04-19 at 03:45, Andy Todd wrote: > Now hands up for changing the DB-API to remove the pyformat paramstyle? > If we're going to have options I think we should restrict them to either > named parameters (a la cx_Oracle) or the '?' qmark (a la ODBC and JDBC). I'm all for that with the

Re: [DB-SIG] mysql string length?

2006-04-19 Thread Andy Todd
Lukasz Szybalski wrote: > On 4/18/06, Lukasz Szybalski <[EMAIL PROTECTED]> wrote: >> On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> On Mon, 17 Apr 2006, Andy Todd wrote: >>> > stmt = "INSERT INTO table_x (body) VALUES (%s)" # [1] > cursor.execute(stmt, (body,)) >>