Update db_oracle.go

fix dbbase.GetColumns  expected 3 destination arguments but only query one in oracle
This commit is contained in:
llchry 2025-03-21 18:35:21 +08:00 committed by Ming Deng
parent 939bb18c66
commit 5fa33bc11b

View File

@ -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))
} }