Page 1 of 1

FillSchema returns no Default value

Posted: Wed 30 Aug 2006 20:12
by Florian Heinemann
Hello!

We're using FillSchema to retrieve standardized table information. Unfortunately is the value "DafaultValue" not set... So we have to write special code for MySQL using GetSchema to get the default information. Is there a way to force MySqlDirect to fill in the DefaultValue column?

Regards,

Florian Heinemann

Posted: Thu 31 Aug 2006 07:16
by Alexey
To retrieve DefaultValue use MySqlConnection.GetSchema method.
For example,

Code: Select all

DataTable myTable = mySqlConnection1.GetSchema("Columns", new string[] { "Test", "emp" });