Skip Menu |

This queue is for tickets about the Fey CPAN distribution.

Report information
The Basics
Id: 46177
Status: resolved
Priority: 0/
Queue: Fey

People
Owner: Nobody in particular
Requestors: er [...] xs4all.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [Fwd: 'literal' as 'alias' construct - possible?]
Date: Mon, 18 May 2009 15:25:31 +0200 (CEST)
To: bug-fey [...] rt.cpan.org
From: "Erik Rijkers" <er [...] xs4all.nl>
not strictly a bug, but nothing happening on fey@fey-project.org, so here goes again Show quoted text
---------------------------------------- Original Message ---------------------------------------- Subject: 'literal' as 'alias' construct - possible? From: "Erik" <er@xs4all.nl> Date: Sat, May 2, 2009 03:06 To: fey@fey-project.org -------------------------------------------------------------------------------------------------- Hi, I am trying to get an alias on a literal from Fey: select 'my_string' as 'my_alias' from my_table (as it is often useful to 'name' literal columns) my $schema = Fey::Loader->new(dbh => $dbh)->make_schema(); my $select = Fey::SQL->new_select(); my $table = $schema->table( 'mytable' ); my $string = "my_string"; my $alias = "my_alias"; my $literal = Fey::Literal->new_from_scalar( $lit_string ); $literal->set_alias_name( $lit_alias ); $select->select( $literal ) ->from( $table ) ; my $sql = $select->sql( $dbh ); print $sql, "\n"; I was looking at the module code to see whether it can be done, or whether perhaps I can add the possibility. It looks to me that the construct has not been foreseen, but as a Moose-noob, /and/ a Fey-noob I thought I'd ask here first. I am wondering if it's alreay possible? A m I overlooking something? thanks, Erik Rijkers
Subject: Re: [rt.cpan.org #46177] [Fwd: 'literal' as 'alias' construct - possible?]
Date: Mon, 18 May 2009 09:10:16 -0500 (CDT)
To: Erik Rijkers via RT <bug-Fey [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Mon, 18 May 2009, Erik Rijkers via RT wrote: Show quoted text
> Mon May 18 09:25:58 2009: Request 46177 was acted upon. > Transaction: Ticket created by er@xs4all.nl > Queue: Fey > Subject: [Fwd: 'literal' as 'alias' construct - possible?] > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: er@xs4all.nl > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46177 > > > > not strictly a bug, but nothing happening on fey@fey-project.org, so here goes again
I didn't even get this email. You have to sign up for the list to send email to it. Please try again. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
or use IRC - irc://irc.perl.org/#fey closing this ticket since it's not a bug. Please do not reply.