NULL for certain datatype values

Author Message

Piotrek Karaś

Monday 14 April 2008 7:01:09 am

Shouldn't it be possible to store NULL values for certain datatypes? For example, integer or float? It could be decided at the class attribute configuration level, just like in MySQL we would have NULL/NOT NULL option. In that way, the datatype's backward compatibility mode could be achieved (set to NOT NULL - currently the only option).

I believe this would solve many problems, since NULL is a completely different type information/value that 0!

What do you think?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Kristof Coomans

Tuesday 15 April 2008 2:21:46 am

Hi Piotrek

http://issues.ez.no/5966

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Piotrek Karaś

Wednesday 16 April 2008 1:16:22 pm

It's curious that this request has drawn so little attention since then...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:30:01
Script start
Timing: Jan 19 2025 00:30:01
Module start 'layout'
Timing: Jan 19 2025 00:30:01
Module start 'content'
Timing: Jan 19 2025 00:30:02
Module end 'content'
Timing: Jan 19 2025 00:30:02
Script end

Main resources:

Total runtime0.8480 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9219152.6250
Module start 'layout' 0.00690.0036 740.546939.4453
Module start 'content' 0.01050.8358 779.9922538.7422
Module end 'content' 0.84630.0017 1,318.734412.1563
Script end 0.8480  1,330.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4213160.0002
Check MTime0.00140.1612160.0001
Mysql Total
Database connection0.00100.121010.0010
Mysqli_queries0.789293.0616570.0138
Looping result0.00090.1056550.0000
Template Total0.806095.020.4030
Template load0.00220.263620.0011
Template processing0.803794.780020.4019
Template load and register function0.00010.011310.0001
states
state_id_array0.00120.146510.0012
state_identifier_array0.00230.266920.0011
Override
Cache load0.00220.2585140.0002
Sytem overhead
Fetch class attribute can translate value0.00230.268920.0011
Fetch class attribute name0.00170.204650.0003
XML
Image XML parsing0.00160.182820.0008
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00300.3520230.0001
String conversion0.00000.002140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0004 secs