SAP / go-hdb

SAP HANA Database Client for Go
Apache License 2.0
168 stars 57 forks source link

protocol error: invalid number of lob parameter ids 1 #106

Closed jeovax closed 1 year ago

jeovax commented 1 year ago

I'm trying to insert bulk in Json Document in Hana Cloud like the Example (BulkInsert) via 'extended' argument list.

stmt, err := db.PrepareContext(context.Background(), "INSERT INTO collection VALUES (?);")

However, in the middle of the inserts I got a fatal panic in the line showed bellow:

image

The panic is because the return variable 'r' is nil. The 'err' before the panic is "protocol error: invalid number of lob parameter ids 1".

stfnmllr commented 1 year ago

Ok, thanks a lot for the detailed description of the issue! For the 'panic' I am going to provide a correction, but for the "invalid number of lob parameter ids 1" issue I would need an example to reproduce the error. Would you be able to provide that?

stfnmllr commented 1 year ago

The 'panic' issue should be fixed with https://github.com/SAP/go-hdb/releases/tag/v1.0.4.

jeovax commented 1 year ago

Thanks a lot

stfnmllr commented 1 year ago

https://github.com/SAP/go-hdb/releases/tag/v1.0.5 should fix the protocol error: invalid number of lob parameter ids 1