-
Notifications
You must be signed in to change notification settings - Fork 499
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
fuzz protocol to prevent panics and crashes #179
Comments
Can you upload stack trace and/or logs? |
@denisenkom , Thank you for answer me :) panic: runtime error: slice bounds out of range goroutine 1 [running]: |
I think you probably specified incorrect port number. Looks like go-mssqldb tried to read from provided port but the data that was read was unexpected. This could happen if the port that go-mssqldb is talking to is not MSSQL server but something else. |
Oh, my fault!! I used port 3306. But I get another error.... Login error: read tcp localhost:53738->sqlserver:1433: read: connection reset by peer |
Do you have a stack trace? |
Thank you for your patience... :) Cannot connect: Login error: read tcp localhost:54318-> sqlserver:1433: read: connection reset by peer goroutine 1 [running]: |
No problem. This stack trace doesn't look very useful. You can try to enable logging, see https://github.com/denisenkom/go-mssqldb#connection-parameters for instructions. You can also look at SQL server logs, it might have something useful there. |
* preserve type information for Valuer parameters * support uniqueidentifier in AE * update readme
Hi, I am using valid connection information (e.g. valid ip, valid username, valid password ...) to run tsql.go.
However , I get the following panic:
panic: runtime error: slice bounds out of range
It happend when the processing was
"err = db.Ping()
if err != nil {
fmt.Println("Cannot connect: ", err.Error())
return
}"
Could anyone help me?Thank you very much! :)
The text was updated successfully, but these errors were encountered: