Subject: | where = literal in join impossible? |
Date: | Wed, 1 May 2013 11:30:39 -0500 |
To: | bugs-sql-abstract-more [...] rt.cpan.org |
From: | Caleb Cushing <xenoterracide [...] gmail.com> |
http://stackoverflow.com/q/16307208/206466
I'm trying to do a join using SQL::Abstract::More that has an `and and
then a literal value, not on a table column.
=>{table.table_id=table_id,table_log.date>table.date,table_log.event_id=1}
gd_audit_log
the resulting output that I want
LEFT OUTER JOIN table_log ON (
table_log.date > table.date
AND table.table_id = table_log.table_id
AND table_log.event_id = 1
)
this code works except for
AND table_log.event_id = 1
the error is
... failed: Unknown column 'table_log.1' in 'on clause'
obviously it's generating the wrong SQL, what I'm trying to figure out
is how to get it to generate the SQL I need.
p.s. not sure if this is a missing feature, bug or something I just
don't know, any help would be appreciated.
--
Caleb Cushing
http://xenoterracide.com