Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
do NOT use Group or Order as SQLObject classes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 35 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jorge Vargas  
View profile  
 More options Apr 19 2006, 8:00 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Wed, 19 Apr 2006 20:00:38 -0400
Local: Wed, Apr 19 2006 8:00 pm
Subject: [Docs] do NOT use Group or Order as SQLObject classes

This is a recurrent question/problem in the mailing list.

People went starting to work on identity will probably name their class
Group.
People that are probably testing TG will want to make a shopping cart or
something similar and will probably come up with the Order class

We all know the problem is with SQLs "order by" and "group by" keywords but
most people don't realise this until it has taken some time to find the
answer.

So far I think the best way to go around this is with documentation, but I'm
not sure where to put it so people can access it.

I think a couple of sidenotes in the docs could help.

So far I have think of the following places:

- In the "write your own identity" tutorial
- in the TG main documentation, went first declaring SQLObject classes
- Same as above in TG book (I'll make sure this gets there)
- in a FAQ (if there is any)
- Somewhere in trac/docudo
- in this same post so those who search before ask can get this.

I think the text should be something like "Remenber even though SQLObject
abstracts us from the DB we still can't use any if it's reserved keywords,
the most common mistakes are Order and Group which colide with order by and
group by. This Happens because of the way the table names are guess by
SQLObject, but you can go around that like this
http://www.sqlobject.org/SQLObject.html#changing-the-naming-style"

--- end of post ---
adding this so a search on the errors will show up this post.

pysqlite2.dbapi2.OperationalError: near "group": syntax error
pysqlite2.dbapi2.OperationalError: near "order": syntax error


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ajones  
View profile  
 More options Apr 19 2006, 9:37 pm
From: "ajones" <ajon...@gmail.com>
Date: Wed, 19 Apr 2006 18:37:04 -0700
Local: Wed, Apr 19 2006 9:37 pm
Subject: Re: do NOT use Group or Order as SQLObject classes
I would say this should be appropriate in the TG docs re: using
SQLObject and a reminder in "writing your own identity model" as part
of the warning against doing the same thing with "User" as that is
often reserved by databases as well.

Maybe there is a way to add this kind of checking to SQLObject somehow,
where it throws an error or something when it detects you using a
keyword for a table name. I would assume that this is not terribly
difficult considering SQLObject already has a list of all the SQL
keywords, but I haven't really looked at the code to check for certain.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[Docs] do NOT use Group or Order as SQLObject classes" by Nicky Ayoub
Nicky Ayoub  
View profile  
 More options Apr 19 2006, 11:33 pm
From: "Nicky Ayoub" <nicky.ay...@gmail.com>
Date: Wed, 19 Apr 2006 20:33:30 -0700
Local: Wed, Apr 19 2006 11:33 pm
Subject: Re: [TurboGears] [Docs] do NOT use Group or Order as SQLObject classes

Here is another reference
http://www.sqlobject.org/SQLObject.html#irregular-naming that allows you to
override the table name to
use.

IE.

class User(SQLObject):
    _table = 'app_user'

class Group(SQLObject):
    _table = 'app_group'

class Order(SQLObject):
    table = 'app_order'

--
--
Nicky Ayoub
G-Mail Account


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 19 2006, 11:42 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Thu, 20 Apr 2006 00:42:01 -0300
Local: Wed, Apr 19 2006 11:42 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Quinta 20 Abril 2006 00:33, Nicky Ayoub escreveu:

> Here is another reference
> http://www.sqlobject.org/SQLObject.html#irregular-naming that allows you to
> override the table name to
> use.

> IE.

> class User(SQLObject):
>     _table = 'app_user'

Please, don't use this obsolete syntax.  Use the sqlmeta class for that.  It's
in the same page above: http://www.sqlobject.org/SQLObject.html#class-sqlmeta

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicky Ayoub  
View profile  
 More options Apr 19 2006, 11:51 pm
From: "Nicky Ayoub" <nicky.ay...@gmail.com>
Date: Wed, 19 Apr 2006 20:51:45 -0700
Local: Wed, Apr 19 2006 11:51 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

Excellent suggestion. Thanks for pointing this out to me. Per the docs using
sqlmeta
allows "specifying metadata in a clearer way, without polluting the class
namespace
with more attributes".

So the example should read something like this:

class User(SQLObject):
    class sqlmeta:
        table = 'app_user'

As the manual states "if you're not using the sqlmeta class you're doing
things in a deprecated way."
Next time I do more research before I post.

Nick

On 4/19/06, Jorge Godoy <jgo...@gmail.com> wrote:

--
--
Nicky Ayoub
G-Mail Account

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "do NOT use Group or Order as SQLObject classes" by fumanchu
fumanchu  
View profile  
 More options Apr 20 2006, 12:16 pm
From: "fumanchu" <fuman...@amor.org>
Date: Thu, 20 Apr 2006 09:16:44 -0700
Local: Thurs, Apr 20 2006 12:16 pm
Subject: Re: do NOT use Group or Order as SQLObject classes
Amazing. I've done backends for SQLServer, Access, MySQL, PG, SQLite,
Firebird and Oracle and it was dead simple in all of them to escape
table and column identifiers. SQLObject should be fixed on this point.

Robert Brewer
System Architect
Amor Ministries
fuman...@amor.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 20 2006, 3:40 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Thu, 20 Apr 2006 15:40:06 -0400
Local: Thurs, Apr 20 2006 3:40 pm
Subject: Re: [Docs] do NOT use Group or Order as SQLObject classes

On 4/19/06, Jorge Vargas <jorge.var...@gmail.com> wrote:

*from http://tinyurl.com/o9yam* Order is a reserved keyword in SQLObject.

--- end of post ---


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 20 2006, 3:41 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Thu, 20 Apr 2006 15:41:00 -0400
Subject: Re: [Docs] do NOT use Group or Order as SQLObject classes

sry for double I made a mistake

On 4/20/06, Jorge Vargas <jorge.var...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[Docs] do NOT use Group or Order as SQLObject classes" by Robin Haswell
Robin Haswell  
View profile  
 More options Apr 20 2006, 4:38 pm
From: Robin Haswell <r...@digital-crocus.com>
Date: Thu, 20 Apr 2006 21:38:16 +0100
Local: Thurs, Apr 20 2006 4:38 pm
Subject: Re: [TurboGears] [Docs] do NOT use Group or Order as SQLObject classes

Jorge Vargas wrote:
> This is a recurrent question/problem in the mailing list.

> People went starting to work on identity will probably name their class
> Group.
> People that are probably testing TG will want to make a shopping cart or
> something similar and will probably come up with the Order class

This is not user error, this is a bug in SQLObject. Field names should be properly quoted (backticks
in MySQL). I'm not aware of any SQL database which imposes restrictions on table and column names.

Table and column names should always be quoted in SQL on general principal.

I will file a bug.

-Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 20 2006, 6:06 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Thu, 20 Apr 2006 18:06:05 -0400
Local: Thurs, Apr 20 2006 6:06 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

On 4/20/06, Robin Haswell <r...@digital-crocus.com> wrote:

> Jorge Vargas wrote:
> > This is a recurrent question/problem in the mailing list.

> > People went starting to work on identity will probably name their class
> > Group.
> > People that are probably testing TG will want to make a shopping cart or
> > something similar and will probably come up with the Order class

> This is not user error, this is a bug in SQLObject. Field names should be
> properly quoted (backticks
> in MySQL).

I will not say it's a bug, it's more a design thing, if they didn't do it
for any reason (performance may be one) we need to investigate. For now it's
a user error, if it's get change in SQLObject we'll come back here and post
this is not an issue anymore :)

I'm not aware of any SQL database which imposes restrictions on table and

> column names.

The fact they allow non quoted names means a restriction for keywords.

Table and column names should always be quoted in SQL on general principal.

Not really, it's a "good practice" but you know how those are

I will file a bug.

I was going to do that but the tracker was down so I posted to the mailing
list.

-Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Haswell  
View profile  
 More options Apr 20 2006, 6:47 pm
From: Robin Haswell <r...@digital-crocus.com>
Date: Thu, 20 Apr 2006 23:47:58 +0100
Local: Thurs, Apr 20 2006 6:47 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

Jorge Vargas wrote:
> The fact they allow non quoted names means a restriction for keywords.

You say restriction, I say syntax error :-)

Fair enough though. All I'm saying is there shouldn't be a reason why this isn't possible, all
that's required is a cleanup to SQLObject's query builder. If SO is written well this could be a
two-line patch :-)

Anyway I'm still SQLAlchemy++, and I've never even used it. I'm wary of integrating projects at the
core which have flatlined at 0.7.

-Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 20 2006, 6:56 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Thu, 20 Apr 2006 19:56:57 -0300
Local: Thurs, Apr 20 2006 6:56 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Quinta 20 Abril 2006 19:47, Robin Haswell escreveu:

> builder. If SO is written well this could be a two-line patch :-)

It would be nice to see a 2 line patch to cover Oracle, PostgreSQL, Firebird,
SQLite, MySQL, etc. on this subject.  Specially because if it included tests
(those can have more than 2 lines ;-)) they would probably be accepted.

Ah!  Of course, one has to remember about case-folding differences and that it
is relevant specially for already existing database ("fromDatabase = True").

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Haswell  
View profile  
 More options Apr 20 2006, 7:01 pm
From: Robin Haswell <r...@digital-crocus.com>
Date: Fri, 21 Apr 2006 00:01:41 +0100
Local: Thurs, Apr 20 2006 7:01 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

Jorge Godoy wrote:
> Em Quinta 20 Abril 2006 19:47, Robin Haswell escreveu:

>> builder. If SO is written well this could be a two-line patch :-)

> It would be nice to see a 2 line patch to cover Oracle, PostgreSQL, Firebird,
> SQLite, MySQL, etc. on this subject.  Specially because if it included tests
> (those can have more than 2 lines ;-)) they would probably be accepted.

> Ah!  Of course, one has to remember about case-folding differences and that it
> is relevant specially for already existing database ("fromDatabase = True").

I'm not sure if case folding applies to this. All that should be necessary is adding backticks (or
equivalents - maybe) around table/column names.

-Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 20 2006, 8:02 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Thu, 20 Apr 2006 21:02:11 -0300
Local: Thurs, Apr 20 2006 8:02 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Quinta 20 Abril 2006 20:01, Robin Haswell escreveu:

> I'm not sure if case folding applies to this. All that should be necessary
> is adding backticks (or equivalents - maybe) around table/column names.

In PostgreSQL if you use quotes you have to use the exact same case that was
used to create the table.  If you don't, names will be converted to lower
case.  In Oracle if you don't use quotes names will be converted to upper
case.  

If you create a table like this "Test" then you can't access it like "test" or
"TEST" in PostgreSQL, for example.  On the other hand, if you create it like
Test, then it will be converted to test and you can access it as test, Test,
TEST, teST, TeST, etc.  All without quotes, of course.  If you try accessing
it as "Test" (with quotes), it will fail.

Now, imagine it in an database that is used by several applications in, lets
say, 3 different languages.  Several different teams coding, etc.  If you
enforce the use of quotes in one of these apps, *all* of them will have to
use quotes to maintain compatibility and there will have to be some internal
documentation on how to name tables and columns.  If you don't use quotes,
then it doesn't matter if team A writes "select ThisColumn from TableA" and
team B writes "select thiscolumn from tablea" since both will succeed.

There is much more to consider than just the presence or absence of quotes,
backticks, etc. here.  It is easy to think in a new application used by only
one team but it is a very narrow minded approach to a database that can be
shared by several applications and several teams in different programming
languages.

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Demetrescu  
View profile  
 More options Apr 20 2006, 8:36 pm
From: "Roger Demetrescu" <roger.demetre...@gmail.com>
Date: Thu, 20 Apr 2006 21:36:07 -0300
Local: Thurs, Apr 20 2006 8:36 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Jorge is right... I have seen (and suffered the consequences) it in
the past, using Oracle.

[]s
Roger

On 4/20/06, Jorge Godoy <jgo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "do NOT use Group or Order as SQLObject classes" by fumanchu
fumanchu  
View profile  
 More options Apr 21 2006, 1:42 pm
From: "fumanchu" <fuman...@amor.org>
Date: Fri, 21 Apr 2006 10:42:02 -0700
Local: Fri, Apr 21 2006 1:42 pm
Subject: Re: [Docs] do NOT use Group or Order as SQLObject classes

> In PostgreSQL if you use quotes you have to use
> the exact same case that was used to create the
> table.  If you don't, names will be converted to lower
> case.  In Oracle if you don't use quotes names will
> be converted to upper case.

You could offer an "application DB" mode that quotes everything and an
"integration DB" mode that quotes nothing (and lowercases for PG). Then
only those with integrated DB's would have to "pay the price" of
avoiding reserved words.

<clickety-click> I just added that option to Dejavu's Postgres adapter,
defaulting to "application DB" mode. Written, tested, and debugged in
15 minutes.

Robert Brewer
System Architect
Amor Ministries
fuman...@amor.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[Docs] do NOT use Group or Order as SQLObject classes" by Jorge Godoy
Jorge Godoy  
View profile  
 More options Apr 21 2006, 2:08 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Fri, 21 Apr 2006 15:08:15 -0300
Local: Fri, Apr 21 2006 2:08 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Sexta 21 Abril 2006 14:42, fumanchu escreveu:

> You could offer an "application DB" mode that quotes everything and an
> "integration DB" mode that quotes nothing (and lowercases for PG). Then
> only those with integrated DB's would have to "pay the price" of
> avoiding reserved words.

> <clickety-click> I just added that option to Dejavu's Postgres adapter,
> defaulting to "application DB" mode. Written, tested, and debugged in
> 15 minutes.

And then you'd have to test two different things all the time, document and
explain two different approaches, maintain two different code paths, do it
for all supported databases (PostgreSQL, Firebird, MySQL, Oracle,
SQLite, ...), etc.

I don't see this with good eyes, but nothing is preventing you people from
writing a patch for that -- with tests -- and submitting it to the SQLObject
trac and mailing list.  Remember to support everything that is in their code
right now...

It looks like, from the core, there's "only" support for:

        - PostgreSQL
        - SQLite
        - MAXDB
        - MySQL
        - Sybase
        - Firebird
        - MS SQL Server

Be seeing you,
--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Haswell  
View profile  
 More options Apr 21 2006, 4:39 pm
From: Robin Haswell <r...@digital-crocus.com>
Date: Fri, 21 Apr 2006 21:39:50 +0100
Local: Fri, Apr 21 2006 4:39 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

Jorge Godoy wrote:
> I don't see this with good eyes, but nothing is preventing you people from
> writing a patch for that -- with tests -- and submitting it to the SQLObject
> trac and mailing list.  Remember to support everything that is in their code
> right now...

I think TurboGears, as a RAD application for making your life easier, would benefit from not
slapping people with tracebacks when they try to use obvious names in their models.

Does SA have these problems?

-Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 21 2006, 5:01 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Fri, 21 Apr 2006 18:01:23 -0300
Local: Fri, Apr 21 2006 5:01 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Sexta 21 Abril 2006 17:39, Robin Haswell escreveu:

> I think TurboGears, as a RAD application for making your life easier, would
> benefit from not slapping people with tracebacks when they try to use
> obvious names in their models.

So obvious that they were standardized as keywords for one of the involved
layers.  Unfortunately?  I don't know...

But, still, nothing will prevent people from using these obvious names for
their classes if they use different table names, what solves the problem in a
different way (and is transparent everywhere except for a line or two in the
model).

> Does SA have these problems?

You'd have to check.  I've never used SQL Alchemy here.

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lateef jackson  
View profile  
 More options Apr 25 2006, 1:00 pm
From: "lateef jackson" <lateef.jack...@gmail.com>
Date: Tue, 25 Apr 2006 20:00:18 +0300
Local: Tues, Apr 25 2006 1:00 pm
Subject: Re: [TurboGears] [Docs] do NOT use Group or Order as SQLObject classes

In svn version of the identity documentation there is a note that warns
users to not use 'Group' as a class name unless you override the table name
by using sqlmeta. I didn't not mention 'Order' however it could easily be
added.
Thanks,
Lateef
On 4/20/06, Jorge Vargas <jorge.var...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 25 2006, 2:35 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Tue, 25 Apr 2006 15:35:30 -0300
Local: Tues, Apr 25 2006 2:35 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Terça 25 Abril 2006 14:00, lateef jackson escreveu:

> In svn version of the identity documentation there is a note that warns
> users to not use 'Group' as a class name unless you override the table name
> by using sqlmeta. I didn't not mention 'Order' however it could easily be
> added.

Yep.  I added this note there and closed a bug with it.  There's no "order"
table in Identity AFAIR and we can't document all reserved keywords for all
RDBMS servers (they differ, unfortunately).

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 25 2006, 10:56 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Tue, 25 Apr 2006 22:56:33 -0400
Local: Tues, Apr 25 2006 10:56 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

On 4/25/06, Jorge Godoy <jgo...@gmail.com> wrote:

> Em Terça 25 Abril 2006 14:00, lateef jackson escreveu:
> > In svn version of the identity documentation there is a note that warns
> > users to not use 'Group' as a class name unless you override the table
> name
> > by using sqlmeta. I didn't not mention 'Order' however it could easily
> be
> > added.

> Yep.  I added this note there and closed a bug with it.  There's no
> "order"
> table in Identity AFAIR and we can't document all reserved keywords for
> all
> RDBMS servers (they differ, unfortunately).

Yea but we can document the issue to the most, someone posted it on trac, so
I'm doing the circular reference :)

And I think we can document it, with links like it was done with mysql.

http://trac.turbogears.org/turbogears/wiki/SQLObjectReservedWords

--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 25 2006, 10:59 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Tue, 25 Apr 2006 22:59:30 -0400
Local: Tues, Apr 25 2006 10:59 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

Jorge could you add this to
http://trac.turbogears.org/turbogears/wiki/SQLObjectReservedWords

I think it will be a good idea to have an explanation if why this is need to
be taken into account.

On 4/20/06, Jorge Godoy <jgo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options Apr 25 2006, 11:09 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Wed, 26 Apr 2006 00:09:10 -0300
Local: Tues, Apr 25 2006 11:09 pm
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes
Em Terça 25 Abril 2006 23:59, Jorge Vargas escreveu:

"this" what?  I was explaining about case folding.  For reserved keywords one
should check the manual of the RDBMS server he/she is using.

> I think it will be a good idea to have an explanation if why this is need
> to be taken into account.

If you're going to use quotes then this *has* to be taken into account.  If
you're not using quotes, then all RDBMS servers should "do the right
thing"(tm).

This is what I was explaining on this message.

--
Jorge Godoy      <jgo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 26 2006, 12:23 am
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Wed, 26 Apr 2006 00:23:47 -0400
Local: Wed, Apr 26 2006 12:23 am
Subject: Re: [TurboGears] Re: [Docs] do NOT use Group or Order as SQLObject classes

yes, what i was refering to is explain to some that is reading that wiki
page why this is a "problem" it's not obvious that you couldn't use Group as
a SQLObject, and why this can't be fix (at least not in a simple way).

On 4/25/06, Jorge Godoy <jgo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 35   Newer >
« Back to Discussions « Newer topic     Older topic »