<div dir="ltr"><div><div><div>I have upgraded to SQL::Abstract 1.77 version but still I see this issue<br><br></div><div>I have upgraded to DBIx::Class 0.08270 version but still I see this issue<br></div><div><br></div>Here is the relationship between AlertContact table and AlertProfile<br>
<br>__PACKAGE__->belongs_to(<br> Profile => 'PAMS::WWW::Schema::Result::AlertProfile',<br> {<br> 'foreign.Id' => 'self.ProfileId'<br> }<br>);<br><br></div>Here is the search call<br>
<br><div style="text-align:left"> my $alert_contact = $c->model('PAMSDB::AlertContact')->search(<br> {<br> 'Profile.ReferenceId' => $profile->{ID},<br> 'Name' => $href->{ContactMethod}<br>
},<br> {'join' => 'Profile'}<br> )->first;<br></div><br></div>Still this gives below Error<br><br>DBI Exception: DBD::Pg::st execute failed: ERROR: syntax error at or near "IDENT"<br>
LINE 1: ... JOIN "AlertProfile" "Profile" ON "Profile"."Id" IDENT $1 W...<br> ^ [for Statement "SELECT * FROM "AlertContact" "me" JOIN "AlertProfile" "Profile" ON "Profile"."Id" IDENT ? WHERE ( ( "Name" = ? AND "Profile"."ReferenceId" = ? ) )" with ParamValues: 1='me.ProfileId', 2='Office Email', 3='1'] <br>
<div><div><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Please help..<br clear="all"></div><div class="gmail_extra"><div><div dir="ltr"><div><br></div>Best Regards, <br>Sheeju Alex<br>
<div style="display:inline"></div></div></div>
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> After upgrading to new DBIX version my JOIN statement is failing, here is<br>
> the query in new and old version<br>
<br>
Could you please show us the relationship definition and the ->search()<br>
call(s) you are using that lead to these queries?<br>
<br>
> ** WORKING in this version<br>
><br>
> DBIx Version: 0.08195<br>
><br>
> SELECT * FROM "AlertContact" "me" JOIN "AlertProfile" "Profile" ON<br>
> "Profile"."Id" = "me"."ProfileId" WHERE ( ( "Profile"."Refe<br>
> renceId" = ? AND "me"."Name" = ? ) ): '1', 'Email'<br>
><br>
><br>
> ** NOT WORKING in this version<br>
><br>
> DBIx Version: 0.08250<br>
<br>
This is not the most recent version, 0.08270 is out now. Could you try<br>
that as well?<br>
<br>
> SELECT * FROM "AlertContact" "me" JOIN "AlertProfile" "Profile" ON<br>
> "Profile"."Id" *IDENT* ? WHERE ( ( "Profile"."ReferenceId" = ? AND<br>
> "me"."Name" = ? ) )" with ParamValues: 1='me.ProfileId', 2='1', 3='Email']<br>
><br>
> I see extra keyword IDENT in JOIN statement, Can you please let me know<br>
> how to fix it?<br>
><br>
> Thanks,<br>
> Sheeju<br></blockquote></div></div></div></div></div></div></div></div>