From 5fa33bc11b947d0ddd0f68eb0cb8903741900f00 Mon Sep 17 00:00:00 2001 From: llchry <40153967+llchry@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:35:21 +0800 Subject: [PATCH] Update db_oracle.go fix dbbase.GetColumns expected 3 destination arguments but only query one in oracle --- client/orm/db_oracle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/orm/db_oracle.go b/client/orm/db_oracle.go index 8776f23a..7f4a0f3c 100644 --- a/client/orm/db_oracle.go +++ b/client/orm/db_oracle.go @@ -87,7 +87,7 @@ func (d *dbBaseOracle) ShowTablesQuery() string { // Oracle 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)) }