Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions contrib/drivers/oracle/oracle_do_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func (d *Driver) DoFilter(ctx context.Context, link gdb.Link, sql string, args [
if err != nil {
return
}
newSql, err = gregex.ReplaceString("\"", "", newSql)
if err != nil {
return
}
newSql, err = d.parseSql(newSql)
if err != nil {
return
Expand Down
15 changes: 2 additions & 13 deletions contrib/drivers/oracle/oracle_z_unit_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package oracle_test
import (
"context"
"fmt"
"strings"

_ "github.com/sijms/go-ora/v2"

Expand Down Expand Up @@ -114,7 +113,7 @@ func createTable(table ...string) (name string) {
dropTable(name)

if _, err := db.Exec(ctx, fmt.Sprintf(`
CREATE TABLE %s (
CREATE TABLE "%s" (
ID NUMBER(10) NOT NULL,
PASSPORT VARCHAR(45) NOT NULL,
PASSWORD CHAR(32) NOT NULL,
Expand Down Expand Up @@ -152,15 +151,5 @@ func createInitTable(table ...string) (name string) {
}

func dropTable(table string) {
count, err := db.GetCount(ctx, "SELECT COUNT(*) FROM USER_TABLES WHERE TABLE_NAME = ?", strings.ToUpper(table))
if err != nil {
gtest.Fatal(err)
}

if count == 0 {
return
}
if _, err = db.Exec(ctx, fmt.Sprintf("DROP TABLE %s", table)); err != nil {
gtest.Fatal(err)
}
db.Exec(ctx, fmt.Sprintf(`DROP TABLE "%s"`, table))
}
Loading