Code Monkey home page Code Monkey logo

Comments (9)

rongfengliang avatar rongfengliang commented on September 27, 2024

@hoantv i test with oracle 10g is ok ,maybe some sql query with time?

from go-ora.

hoantv avatar hoantv commented on September 27, 2024

@hoantv i test with oracle 10g is ok ,maybe some sql query with time?

the error occured when i create new connection, i hadn't yet made a query:
conn, err := go_ora.NewConnection("oracle://user:pass@server/service_name")

from go-ora.

sijms avatar sijms commented on September 27, 2024

can you see the log file at define which step cause error

from go-ora.

hoantv avatar hoantv commented on September 27, 2024

can you see the log file at define which step cause error

Tomorrow i will send you the log :).

from go-ora.

hoantv avatar hoantv commented on September 27, 2024

After update lasted lib. It worked. Thank you.
By the way, could you add url.escapedQuery for password. Users dont have to add to thier code anymore.

from go-ora.

sijms avatar sijms commented on September 27, 2024

what do you mean by url.escapedQuery can you give example

from go-ora.

hoantv avatar hoantv commented on September 27, 2024

I used it in mycode. User dont have to replace thier special characters

url := fmt.Sprintf("oracle://%s:%s@%s:%d/%s", instance.Username, url.QueryEscape(instance.Password), instance.Host, instance.Port, instance.Sid)

from go-ora.

sijms avatar sijms commented on September 27, 2024

how can I add QueryEscape for password alone ?
this means I will parse the database url manually and extract password and escape It ?
sql interface need to pass database url like this
sql.Open("oracle", "oracle://user:pass@server:1521/service_name")

I think this is job of the programmer to pass correct url to the driver and actually your code is good solution.

if it is ok please close the issue

from go-ora.

hoantv avatar hoantv commented on September 27, 2024

Ok :)

from go-ora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.