Fixes of defaultValue from undef to '', 0 for mysql 5.1

This commit is contained in:
Colin Kuskie 2009-02-20 17:28:23 +00:00
parent 4ee2e59f1d
commit 179e75ef8f
6 changed files with 14 additions and 13 deletions

View file

@ -2,6 +2,7 @@
- fixed #9760: DataForm not working in demo.plainblack.com - fixed #9760: DataForm not working in demo.plainblack.com
- fixed #9759: Delete Entry Button missing in Data Form - fixed #9759: Delete Entry Button missing in Data Form
- fixed #9767: FileAsset breaks 'null' rule for FileAsset table - fixed #9767: FileAsset breaks 'null' rule for FileAsset table
- fixed defaultValues of undef cause mysql5.1 to complain about columns that are set to be NOT NULL. 5.0 doesn't care.
7.6.12 7.6.12
- fixed: During postback on a recurring transaction, the routine could error out instead of catching an error. - fixed: During postback on a recurring transaction, the routine could error out instead of catching an error.

View file

@ -116,7 +116,7 @@ sub definition {
}, },
'storageId' => { 'storageId' => {
fieldType => "Image", fieldType => "Image",
defaultValue => undef, defaultValue => '',
maxAttachments => 1, maxAttachments => 1,
}, },
'feedUid' => { 'feedUid' => {

View file

@ -116,12 +116,12 @@ sub definition {
filename=>{ filename=>{
noFormPost=>1, noFormPost=>1,
fieldType=>'hidden', fieldType=>'hidden',
defaultValue=>undef defaultValue=>'',
}, },
storageId=>{ storageId=>{
noFormPost=>1, noFormPost=>1,
fieldType=>'hidden', fieldType=>'hidden',
defaultValue=>undef defaultValue=>'',
}, },
templateId=>{ templateId=>{
fieldType=>'template', fieldType=>'template',

View file

@ -243,13 +243,13 @@ sub definition {
my $properties = { my $properties = {
storageId => { storageId => {
fieldType=>"image", fieldType=>"image",
defaultValue=>undef, defaultValue=>'',
enforceSizeLimits => 0, enforceSizeLimits => 0,
}, },
threadId => { threadId => {
noFormPost=>1, noFormPost=>1,
fieldType=>"hidden", fieldType=>"hidden",
defaultValue=>undef defaultValue=>'',
}, },
originalEmail => { originalEmail => {
noFormPost=>1, noFormPost=>1,

View file

@ -118,12 +118,12 @@ sub definition {
subscriptionGroupId => { subscriptionGroupId => {
noFormPost=>1, noFormPost=>1,
fieldType=>"hidden", fieldType=>"hidden",
defaultValue=>undef defaultValue=>'',
}, },
replies => { replies => {
noFormPost=>1, noFormPost=>1,
fieldType=>"hidden", fieldType=>"hidden",
defaultValue=>undef defaultValue=>0,
}, },
isSticky => { isSticky => {
fieldType=>"yesNo", fieldType=>"yesNo",
@ -131,12 +131,12 @@ sub definition {
}, },
isLocked => { isLocked => {
fieldType=>"yesNo", fieldType=>"yesNo",
defaultValue=>0 defaultValue=>0,
}, },
lastPostId => { lastPostId => {
noFormPost=>1, noFormPost=>1,
fieldType=>"hidden", fieldType=>"hidden",
defaultValue=>undef defaultValue=>'',
}, },
lastPostDate => { lastPostDate => {
noFormPost=>1, noFormPost=>1,

View file

@ -96,13 +96,13 @@ sub definition {
}, },
actionTaken => { actionTaken => {
fieldType => "text", fieldType => "text",
defaultValue => undef, defaultValue => '',
noFormPost => 1 noFormPost => 1,
}, },
actionTakenBy => { actionTakenBy => {
fieldType => "user", fieldType => "user",
defaultValue => undef, defaultValue => '',
noFormPost => 1 noFormPost => 1,
}, },
); );