is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#795 closed bug (fixed)

Problem with table name using character '-' when creating DAO

Reported by: mickaelh Owned by:
Priority: normal Milestone: Jelix 1.0.7
Component: jelix:db Version: 1.0.6
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


When a table name uses the '-' character, you have to encapsulate it with '`' when creating a DAO from command line script :

php jelix.php --app createdao module_name dao_name \`table-name\`

This leads to the next line in the DAO file :

<primarytable name="`table-name`" realname="`table-name`" primarykey="tableKey" />

This will not work, the table name is already escaped when the XML file is compiled into PHP.

Change History (2)

comment:1 Changed 13 years ago by laurentj

  • Component changed from jelix-scripts to jelix:db
  • Milestone changed from jelix 1.1 to Jelix 1.0.7
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 1.1RC1 to 1.0.6

It's just a problem in the mysql driver of jDb. Fixed in the 1.0.x branch, 1.1.x branch and the trunk.

comment:2 Changed 13 years ago by laurentj


Note: See TracTickets for help on using tickets.