Closed (fixed)
Project:
Email Field
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2007 at 18:58 UTC
Updated:
29 Apr 2008 at 11:45 UTC
In strict mode, MySQL cannot accept an empty string when a field's "not null" property is set to TRUE. This can cause MySQL errors to be thrown in certain situations.
As far as I know there is no downside to setting 'not null'->FALSE, many CCK core fields do that now.
Patch attached, this is my second patch submission! Let me know if you need anything :)
| Comment | File | Size | Author |
|---|---|---|---|
| email.module.patch | 448 bytes | gdd |
Comments
Comment #1
mh86 commentedI added a default = "''" to the database column settings, like it is done in the text module. This fixes the problem, although I didn't write an update script to fix the already existing database columns..
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.