I'm getting this error when installing:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB/TEXT column 'hook_mappings' can't have a default value: CREATE TABLE {services_client_connection_hook} (
`hid` INT unsigned NOT NULL auto_increment COMMENT 'Primary ID field for the table. Not used for anything except internal lookups.', 
`conn_name` VARCHAR(255) NOT NULL COMMENT 'The name of the connection.', 
`name` VARCHAR(255) NOT NULL COMMENT 'The name of the hook.', 
`title` VARCHAR(255) NOT NULL COMMENT 'The title of the hook.', 
`hook` VARCHAR(255) NOT NULL COMMENT 'The name of the hook.', 
`hook_mappings` LONGTEXT NOT NULL DEFAULT '' COMMENT 'Mapping of different fields of objects', 
`hook_conditions` LONGTEXT NOT NULL DEFAULT '' COMMENT 'Hook conditions', 
PRIMARY KEY (`hid`), 
UNIQUE KEY `name` (`name`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Connection hooks'; Array
(
)
 in db_create_table() (line 2686 of /opt/lampp/htdocs/mysite/includes/database/database.inc).

Comments

soyarma’s picture

Hmm... look at that, its incorrect--shouldn't have not null and default '' on the longtext. I'll fix that up.

soyarma’s picture

Status: Active » Fixed

Fix committed to 7.x-1.x branch. Dev snapshot should update in a few hours.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.