test oracle #1219
@ -738,7 +738,7 @@ func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Colum
|
|||||||
col.SQLType = core.SQLType{Name: core.TimeStampz, DefaultLength: 0, DefaultLength2: 0}
|
col.SQLType = core.SQLType{Name: core.TimeStampz, DefaultLength: 0, DefaultLength2: 0}
|
||||||
case "NUMBER":
|
case "NUMBER":
|
||||||
col.SQLType = core.SQLType{Name: core.Double, DefaultLength: len1, DefaultLength2: len2}
|
col.SQLType = core.SQLType{Name: core.Double, DefaultLength: len1, DefaultLength2: len2}
|
||||||
case "LONG", "LONG RAW":
|
case "LONG", "LONG RAW", "NCLOB", "CLOB":
|
||||||
col.SQLType = core.SQLType{Name: core.Text, DefaultLength: 0, DefaultLength2: 0}
|
col.SQLType = core.SQLType{Name: core.Text, DefaultLength: 0, DefaultLength2: 0}
|
||||||
case "RAW":
|
case "RAW":
|
||||||
col.SQLType = core.SQLType{Name: core.Binary, DefaultLength: 0, DefaultLength2: 0}
|
col.SQLType = core.SQLType{Name: core.Binary, DefaultLength: 0, DefaultLength2: 0}
|
||||||
|
11
oracle_test.go
Normal file
11
oracle_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright 20190 The Xorm Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build oracle
|
||||||
|
|
||||||
|
package xorm
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "github.com/mattn/go-oci8"
|
||||||
|
)
|
1
test_oracle.sh
Executable file
1
test_oracle.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
go test -tags=oracle -db=oci8 -conn_str="system/oracle@localhost:1521/xe"
|
Loading…
Reference in New Issue
Block a user