Issue Details (XML | Word | Printable)

Key: MDL-9530
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: Eloy Lafuente (stronk7)
Reporter: Andrei Bautu
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Install error: MySQL says "BLOB/TEXT column 'sessdata' can't have a default value"

Created: 24/Apr/07 04:15 AM   Updated: 24/Jul/07 07:37 AM
Return to search
Component/s: Database SQL/XMLDB
Affects Version/s: 1.9
Fix Version/s: None

Environment: Apache 2.2.4, MySQL 5.1.17, PHP 5.2.1
Issue Links:
Duplicate
 

Database: MySQL
Participants: Andrei Bautu, Eloy Lafuente (stronk7), Petr Skoda, Samuli Karevaara and Yu Zhang
Security Level: None
Resolved date: 06/May/07
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
During fresh install (from CVS), MySQL says:

1101: BLOB/TEXT column 'sessdata' can't have a default value

         ADOConnection._Execute(CREATE TABLE mdl_sessions2 (
    sesskey VARCHAR(64) NOT NULL DEFAULT '',
    expiry DATETIME NOT NULL,
    expireref VARCHAR(25..., false) % line 891, file: adodb.inc.php
      ADOConnection.Execute(CREATE TABLE mdl_sessions2 (
    sesskey VARCHAR(64) NOT NULL DEFAULT '',
    expiry DATETIME NOT NULL,
    expireref VARCHAR(25...) % line 89, file: dmllib.php
   execute_sql(CREATE TABLE mdl_sessions2 (
    sesskey VARCHAR(64) NOT NULL DEFAULT '',
    expiry DATETIME NOT NULL,
    expireref VARCHAR(25..., true) % line 1899, file: dmllib.php
execute_sql_arr(Array[280]) % line 548, file: ddllib.php
install_from_xmldb_file(D:\Moodle\moodle/lib/db/install.xml) % line 179, file: index.php

This problem did not appeared on MySQL 5.0.33 and 5.0.22, and it seems to have a solution on http://moodle.org/mod/forum/discuss.php?d=58264#p267957

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
toyomoyo committed 1 file to 'Moodle CVS' - 26/Apr/07 10:28 AM
fix for MDL-9530, BLOB/TEXT column can't have a default value.
MODIFY lib/db/install.xml   Rev. 1.52    (+2 -2 lines)