GetSchema("Columns") isn't complete
GetSchema("Columns") isn't complete
Hello!
We use GetSchema("Columns") to retrieve table details. But there is at least one important flag missing: The decimal count of a double/decimal/float like "double (7,3)"
Is there any other possibility to get this information without using selfmade-SQL-Scripts? And do you want to add this flag to the schema?
Regards,
Sven Kolber
We use GetSchema("Columns") to retrieve table details. But there is at least one important flag missing: The decimal count of a double/decimal/float like "double (7,3)"
Is there any other possibility to get this information without using selfmade-SQL-Scripts? And do you want to add this flag to the schema?
Regards,
Sven Kolber
Unfortunately not in my case. I have the following field in a table on a MySQL 5.0 server:
This field fills Precision with 20 and Scale with 0...
Code: Select all
spesen double(20,10) (NULL) NO 13.9000000000
Here is an other example on a 5.0 server:
Table definition
The result of MySQLDirect is:
Precision: 12
Scale: 0 (should be 3)
Regards[/b]
Table definition
Code: Select all
CREATE TABLE `products` (
`ProductID` int(11) NOT NULL auto_increment,
`ProductName` varchar(40) NOT NULL,
`SupplierID` varchar(20) default NULL,
`CategoryID` decimal(12,3) default '0.000', // <-------
`QuantityPerUnit` smallint(6) default '0',
`UnitPrice` smallint(6) default '0',
`UnitsInStock` smallint(6) default '0',
`UnitsOnOrder` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`ProductID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
Precision: 12
Scale: 0 (should be 3)
Regards[/b]