Hi,

I tried to do the following in my "data-config.xml" file:

<dataConfig>
<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/my_zend_appz" user="root" password=""/>


  <document>

          <entity name="ci_project" query="select pr_id, pr_name, pr_comment
from ci_project WHERE pr_id = 1">
            <field column="pr_id" name="id" />
            <field column="pr_name" name="name" />
<field name="definition">Projects</field>     <--------------------Why
doesn´t that work?
            <field column="pr_comment" name="comment" />
            

           
          </entity>

  </document>


</dataConfig>

The problem as you see is the line:
"<field name="definition">Projects</field>"

I want to set a constant value for every row in the SQL table but it doesn´t
work that way, any ideas?

kind regards,

Sebastian
-- 
View this message in context: 
http://www.nabble.com/Using-constants-with-DataImportHandler-and-MySQL---tp22954954p22954954.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to