attribute::datatype_to_sql_type (private)
attribute::datatype_to_sql_type [ -default default ] table column \ datatype
Defined in packages/acs-subsite/tcl/attribute-procs.tcl
Returns the appropriate sql type for a table definition based on the table, column, datatype, and default value. Note that for default values, this proc automatically generates appropriate constraint names as well.
- Switches:
- -default (optional)
- If specified, we add a default clause to the SQL statement
- Parameters:
- table (required)
- column (required)
- datatype (required)
- Author:
- Michael Bryzek <mbryzek@arsdigita.com>
- Created:
- 12/2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.