Bonjour,

En tant que premier post, je vous soumets une erreur que je reçois lors de l'éxécution du script de création de tables nécéssaires pour la plateforme OBM (http://obm.aliacom.fr/)

Mon but est de convertir le script pour qu'il puisse être déployé sur un MySQL Cluster. Voici la partie où les choses tournent mal :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
mysql> CREATE TABLE Invoice (
    ->   invoice_id                int(8) auto_increment,
    ->   invoice_domain_id         int(8) default 0,
    ->   invoice_timeupdate        timestamp,
    ->   invoice_timecreate        timestamp,
    ->   invoice_userupdate        int(8),
    ->   invoice_usercreate        int(8),
    ->   invoice_company_id        int(8) NOT NULL,
    ->   invoice_deal_id           int(8) default NULL,
    ->   invoice_project_id        int(8) default NULL,
    ->   invoice_number            varchar(10) DEFAULT '0',
    ->   invoice_label             varchar(40) NOT NULL DEFAULT '',
    ->   invoice_amount_ht         double(10,2),
    ->   invoice_amount_ttc        double(10,2),
    ->   invoice_status_id         int(4) DEFAULT 0 NOT NULL,
    ->   invoice_date              date not NULL DEFAULT '0000-00-00',
    ->   invoice_expiration_date   date,
    ->   invoice_payment_date      date,
    ->   invoice_inout             char(1),
    ->   invoice_archive           char(1) NOT NULL DEFAULT '0',
    ->   invoice_comment           text,
    ->   PRIMARY KEY (invoice_id)
    -> ) ENGINE=NDBCLUSTER;
ERROR 1005 (HY000): Can't create table 'obm.Invoice' (errno: 708)
mysql> SHOW WARNINGS;
+-------+------+------------------------------------------------------------------------------------------+
| Level | Code | Message                                                                                  |
+-------+------+------------------------------------------------------------------------------------------+
| Error | 1296 | Got error 708 'No more attribute metadata records (increase MaxNoOfAttributes)' from NDB |
| Error | 1005 | Can't create table 'obm.Invoice' (errno: 708)                                            | 
+-------+------+------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
Je suis sous MySQL Cluster 5.1.17. J'ai regardé la page dédiée aux limitations MySQL Cluster pour les versions 5.1 (http://dev.mysql.com/doc/refman/5.1/...itations.html), mais je n'ai pas trouvé d'explication.

Quelque chose m'échappe, mais je ne vois pas quoi... Auriez vous une idée ?