Update db_oracle.go
fix dbbase.GetColumns expected 3 destination arguments but only query one in oracle
This commit is contained in:
parent
939bb18c66
commit
5fa33bc11b
@ -87,7 +87,7 @@ func (d *dbBaseOracle) ShowTablesQuery() string {
|
|||||||
|
|
||||||
// Oracle
|
// Oracle
|
||||||
func (d *dbBaseOracle) ShowColumnsQuery(table string) string {
|
func (d *dbBaseOracle) ShowColumnsQuery(table string) string {
|
||||||
return fmt.Sprintf("SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS "+
|
return fmt.Sprintf("SELECT COLUMN_NAME, DATA_TYPE, NULLABLE FROM ALL_TAB_COLUMNS "+
|
||||||
"WHERE TABLE_NAME ='%s'", strings.ToUpper(table))
|
"WHERE TABLE_NAME ='%s'", strings.ToUpper(table))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user