Subject | Default Domains |
---|---|
Author | certfb |
Post date | 2011-08-19T09:30:17Z |
I appreciate that this has been asked and answered over on Stack Overflow and possibly here as well (but I couldn't find it), but my query is slightly different.
What do people consider to be 'best practice' with regard to domains?
Should I create a domain for each datatype I use or just let Firebird create defaults for me?
Why does Firebird create a different default domain for each column even with the same data types? For example if I have two columns, both INTs, both allow NULL, both no default value, I would still end up with two default domains. Should I create a domain called INT_NULL_NODEFAULT and use that wherever I need an INT column?
Thanks
What do people consider to be 'best practice' with regard to domains?
Should I create a domain for each datatype I use or just let Firebird create defaults for me?
Why does Firebird create a different default domain for each column even with the same data types? For example if I have two columns, both INTs, both allow NULL, both no default value, I would still end up with two default domains. Should I create a domain called INT_NULL_NODEFAULT and use that wherever I need an INT column?
Thanks