Skip to content

Commit

Permalink
Update Connection.swift
Browse files Browse the repository at this point in the history
//OCI_Initialize({error_callback($0)} as! POCI_ERROR, nil, UInt32(OCI_ENV_DEFAULT)); //should be once per app
OCI_Initialize(nil, nil, UInt32(OCI_ENV_DEFAULT)); //should be once per app

changed to nil for POCI_ERROR
  • Loading branch information
h1257977 authored Feb 19, 2018
1 parent 9383ce6 commit 2c7e0d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SwiftOracle/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public class Connection {

public required init(service: OracleService, user:String, pwd: String) {
conn_info = ConnectionInfo(service_name: service.string, user: user, pwd: pwd)
OCI_Initialize({error_callback($0)} as! POCI_ERROR, nil, UInt32(OCI_ENV_DEFAULT)); //should be once per app
//OCI_Initialize({error_callback($0)} as! POCI_ERROR, nil, UInt32(OCI_ENV_DEFAULT)); //should be once per app
OCI_Initialize(nil, nil, UInt32(OCI_ENV_DEFAULT)); //should be once per app
}

func close() {
Expand Down

0 comments on commit 2c7e0d3

Please sign in to comment.