Numerous data connections
I have 13 data connections I need for a project. However, when codegen gets to the 10th database, I get the following error:
Database Index #10 (N/A)
There were no tables available to attempt code generation.
The following errors were reported:
FATAL ERROR: No database configured at index 10. This also occurs for db 11, 12, and 13. I even tried switching 10 to a database I had already generated and got the same answer.
It would not surprise me if it is something I have typed wrong in the config and xml as it is a lot of copy and pasted and edit, so I am also posting snippets from them to see if I missed something.
config (9 works, the rest do not - removed user and password):
define('DB_CONNECTION_9', serialize(array(
'adapter' => 'MySqli5',
'server' => 'localhost',
'port' => null,
'database' => 'p_ce_dolphin_2011',
'username' => '',
'password' => '',
'profiling' => false)));
define('DB_CONNECTION_10', serialize(array(
'adapter' => 'MySqli5',
'server' => 'localhost',
'port' => null,
'database' => 'p_nhamcs_dolphin_2011',
'username' => '',
'password' => '',
'profiling' => false)));
define('DB_CONNECTION_11', serialize(array(
'adapter' => 'MySqli5',
'server' => 'localhost',
'port' => null,
'database' => 'p_nhis_dolphin_2011',
'username' => '',
'password' => '',
'profiling' => false)));and the xml for the first part of 10:
<database index="10">
<!-- Append Prefixes/Suffixes to the Following Code Generated Items -->
<className prefix="nhamcs" suffix=""/>
<associatedObjectName prefix="nhamcs" suffix=""/>Any insight into why these last 4 database generations are failing is greatly appreciated.
I am also using the latest QCubed version.
Rob

It's best to do a bit of research on your own first, to get an idea about laser
surgery. Ask yourself if laser surgery is actually something you want to pursue,
and then call several laser vision centers. Another early technique to treat myopia
(nearsightedness) was radial keratotomy, or RK, in which the surgeon made small
incisions, like pie slices, in the cornea to allow it to spread and flatten, improving
vision.
Eye Disease
Nice to get a reply to my question.
From a spammer. Go somewhere else you idiot.
I haven't looked at the code, so this is just a guess: most likely the DB_CONNECTION_X thing only handles single digits for X...
See ticket 716: http://trac.qcu.be/projects/qcubed/ticket/716
Which version of QC were you working upon? And is it fixed as of now? I am not able to locate that function mentioned in the ticket.