tursodatabase / libsql-client-go

Go client API for libSQL
MIT License
193 stars 24 forks source link

Ensure multi-line statements work #55

Closed rylev closed 1 year ago

rylev commented 1 year ago

The following code does not work on the main branch: https://gist.github.com/rylev/b28e503d33b3dbf7f45843903cb3da3a.

This fixes the very subtle bug where by the last statement was being repeatedly referenced instead of each statement being referenced individually.

I've added a test to prevent regressions.