Re: How to turn on backquotes

[prev] [thread] [next] [Date index for 2005/05/24]

From: David Baird
Subject: Re: How to turn on backquotes
Date: 14:49 on 24 May 2005
On Saturday 21 May 2005 08:07, Tony Bowden wrote:
> On Fri, May 20, 2005 at 11:49:38PM +0100, David Baird wrote:
> > Is there any way to automatically surround column names with backquotes?
> > I'm using Maypole on a database where some of the columns are reserved
> > words
>
> Not yet.
>
> It's planned for a later release.
>
> In the general case I'd suggest you try overriding the name() method in
> Column, but if you're working with Maypole, it might not like that.
>
> Tony

Lots of things didn't like it. I've implemented it instead in transform_sql() 
and put it on CPAN as Class::DBI::Plugin::Backtickify. I'm nervous about a 
few things it does which I've described in the pod, but it does seem to be 
working OK. 

Cheers,

d.

How to turn on backquotes
David Baird 22:49 on 20 May 2005

Re: How to turn on backquotes
Stepan Riha 23:07 on 20 May 2005

Re: How to turn on backquotes
Tony Bowden 07:41 on 21 May 2005

Re: How to turn on backquotes
Tony Bowden 07:07 on 21 May 2005

Re: How to turn on backquotes
David Baird 14:49 on 24 May 2005

Generated at 15:51 on 25 May 2005 by mariachi v0.52