Fix default values in mysql driver
This commit is contained in:
parent
b1e8816d42
commit
468e2f9ad3
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ func (m *MySQLDriver) Columns(schema, tableName string) ([]bdb.Column, error) {
|
|||
var columns []bdb.Column
|
||||
|
||||
rows, err := m.dbConn.Query(`
|
||||
select column_name, data_type, column_default, is_nullable,
|
||||
select column_name, data_type, if(extra = 'auto_increment','auto_increment', column_default), is_nullable,
|
||||
exists (
|
||||
select c.column_name
|
||||
from information_schema.table_constraints tc
|
||||
|
|
Loading…
Reference in a new issue