Basically, running the command Drush en on this module version caused the site to display only an error and no content. Drush also gave an error when trying to enable the module.
Below is what I saw from the terminal side. I am running an Amazon Cloud instance and PostgreSQL haven't had any issues with other modules this was the first error I have seen in the environment.
The following extensions will be enabled: block_class
Do you really want to continue? (y/n): y
WD php: PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "Array" [error]
LINE 5: PRIMARY KEY (Array, Array)
^: CREATE TABLE {block_class} (
module varchar(255) NOT NULL default '',
delta varchar(255) NOT NULL default '',
css_class varchar(255) NOT NULL default '',
PRIMARY KEY (Array, Array)
); Array
(
)
in db_create_table() (line 2685 of /var/dev.aws.XXXX.com/includes/database/database.inc).
Cannot modify header information - headers already sent by (output started at /usr/local/share/drush/includes/output.inc:37) bootstrap.inc:1239 [warning]
PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "Array"
LINE 5: PRIMARY KEY (Array, Array)
^: CREATE TABLE {block_class} (
module varchar(255) NOT NULL default '',
delta varchar(255) NOT NULL default '',
css_class varchar(255) NOT NULL default '',
PRIMARY KEY (Array, Array)
); Array
(
)
in db_create_table() (line 2685 of /var/dev.aws.XXXX.com/includes/database/database.inc).
Drush command terminated abnormally due to an unrecoverable error. Disabling the module via Drush will let your users back into the site as normal. It is not a mission critical module but it would have made some parts of the development easier.
Drupal version 7.14 as of today.
Thank you.
Comments
Comment #1
gmarus commentedSame problem here using block_class module with postgresql. Poking around, I saw this old thread:
http://drupal.org/node/616916
Perhaps a regression sneaked its way into a recent commit?
Comment #2
jamescdavis-1 commentedI'm seeing the same issue with PostgreSQL 9.1 and Drupal 7.15 on CentOS 6.3. I've bumped the priority up to critical and generalized the issue title. I would really like to be able to use this module. If I get time, I will take a look and see if I can create a patch.
Comment #3
pumin commentedThese are logs from PostgreSQL 9.1 (Drupal 7.15 on CentOS 5.5)
Comment #4
berenddeboer commentedFixed in #1447108: PDO Exception when installing module with SQL Server 2008 R2.
The 1.2 version should be available for download shortly.
Comment #4.0
berenddeboer commentedadjusting url info