-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autorization error #67
Comments
Code used to connect to presto-> package hive import (
) var dsn = "http://abhijeet.singh5@gmail.com@localhost:8889?catalog=hive&schema=test" // MakeQueryOnHive provides connection to hive
} func query(db *sql.DB, sqltxt string) ([]map[string]interface{}, error) {
} // open the connection // Close the connection // Sqlrows2Maps sql query result rows converted to maps
} |
|
Hi,i was trying to connect to presto using this repo ,but i was getting authorization error for user which was registered.The reason for this i think is the quotes added against the username.for eg -> if my user name is abc ,it was becoming 'abc' while sending call hence causing unauthorzied
I solved the problem by cloning repo to my local and making two changes to it.
changing file serial.go line no 89 as->
case string:
return strings.Replace(x, "'", "''", -1), nil
removing line 614->query = "EXECUTE " + preparedStatementName + " USING " + strings.Join(ss, ", ")
from presto.go file
is there a better way of doing this?
thank you
The text was updated successfully, but these errors were encountered: