Details
-
Bug
-
Status: Resolved
-
Resolution: Duplicate
-
None
-
TRQS332
Description
The generated schema.xml file after executing the ant -jdbc task contains the wrong value for the database name.
The following (relevant) settings are configured in build.properties:
torque.project = zigbee
torque.database = mysql
torque.database.createUrl = jdbc:mysql://hostname/zigbee
torque.database.buildUrl = jdbc:mysql://hostname/zigbee
torque.database.url = jdbc:mysql://hostname/zigbee
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = zigbee_writer
torque.database.password = *****
torque.database.host = hostname
torque.sameJavaName = false
Therefor, I would expect the database name in the schema.xml file to be "zigbee", but instead it looks like this:
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_2.dtd">
<Unable to render embedded object: File (-- Autogenerated by JDBCToXMLSchema) not found. -->
<database name="zigbee_writer">
Obviously, the database user name has been used as database name...
Attachments
Issue Links
- duplicates
-
TORQUE-39 Wrong database name in generated XML schema with jdbc task
- Closed