Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
add oracle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Feb 3, 2019
1 parent cbfaaba commit 160a6fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dialect_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Colum
col.SQLType = core.SQLType{Name: core.TimeStampz, DefaultLength: 0, DefaultLength2: 0}
case "NUMBER":
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}
case "RAW":
col.SQLType = core.SQLType{Name: core.Binary, DefaultLength: 0, DefaultLength2: 0}
Expand Down
11 changes: 11 additions & 0 deletions oracle_test.go
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions test_oracle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go test -tags=oracle -db=oci8 -conn_str="system/oracle@localhost:1521/xe"

0 comments on commit 160a6fc

Please sign in to comment.