Skip to content
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

Panic in Batch.Column #1053

Closed
EpicStep opened this issue Aug 2, 2023 · 2 comments · Fixed by #1055
Closed

Panic in Batch.Column #1053

EpicStep opened this issue Aug 2, 2023 · 2 comments · Fixed by #1055
Assignees
Labels

Comments

@EpicStep
Copy link
Contributor

EpicStep commented Aug 2, 2023

Describe the bug

Panic in Batch.Column in case of invalid column index in b.batch.IsSend()

Code example

func test(conn driver.Conn) {
	b, err := conn.PrepareBatch(context.Background(), "INSERT INTO my_database.test")
	if err != nil {
		panic(err)
	}

	column := b.Column(1000) // invalid column index

	column.Append(nil) // nil dereference
}

Please, assign it to me

@EpicStep EpicStep added the bug label Aug 2, 2023
@jkaflik
Copy link
Contributor

jkaflik commented Aug 2, 2023

Assigned to you @EpicStep . Are you working on a fix?

@EpicStep
Copy link
Contributor Author

EpicStep commented Aug 2, 2023

@jkaflik yes, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants