what is ${db.tableA.id} ?

I think there is something extra in that

can you paste the whole data-config.xml?

can you paste

On Sun, Jun 7, 2009 at 1:09 AM, gateway0<reiterwo...@yahoo.de> wrote:
>
> Hi,
>
> I tried to do the following:
>
> "
> <field column="id" name="db_id"/>
>
> <entity name="comment" dataSource="db" query="select com_text from comment
> where ftype=1 and fid='${db.tableA.id}' ">
>        <field column="com_text" name="comment"/>
> </entity>
> "
>
> So I use the SQL Table Field "id" twice once for "db_id" in my index and for
> the sql query as "fid=id".
>
> That doesn´t work!
>
> But when I change the query from "fid=id" to like "fid=otherkey" it does
> work!
> Like:
> "
> <field column="id" name="db_id"/>
>
> <entity name="comment" dataSource="db" query="select com_text from comment
> where ftype=1 and fid='${db.tableA.otherkey}' ">
>        <field column="com_text" name="comment"/>
> </entity>
> "
>
> Is there any other kind of a workaround so I can use the SQL Field "id"
> twice as I wanted to? Thanks
>
> kind regards, Sebastian
> --
> View this message in context: 
> http://www.nabble.com/Use-the-same-SQL-Field-in-Dataimporthandler-twice--tp23904968p23904968.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com
  • Use the same SQL Field... gateway0
    • Re: Use the same ... Noble Paul നോബിള്‍ नोब्ळ्
      • Re: Use the s... gateway0
        • Re: Use t... Noble Paul നോബിള്‍ नोब्ळ्
          • Re: U... gateway0
            • ... Noble Paul നോബിള്‍ नोब्ळ्
              • ... gateway0
                • ... Noble Paul നോബിള്‍ नोब्ळ्
                • ... gateway0
                • ... gateway0
                • ... Noble Paul നോബിള്‍ नोब्ळ्

Reply via email to