hashicorp / go-dbw

A simple package that encapsulates database operations.
Mozilla Public License 2.0
13 stars 2 forks source link

WithTable(...) not working correctly for when used in addition to WithVersion(...) #9

Closed jimlambrt closed 2 years ago

jimlambrt commented 2 years ago

Describe the bug

WithWhere(...) causes an error when used WithVersion(...) since the sql generated for the version clause doesn't honor the WithTable(...) table name.

To Reproduce

Use both options together when updating a resource.

Expected behavior

sql generated by WithVersion(...) option should use the WithTable(...) option when used together.

jimlambrt commented 2 years ago

fixed by PR #10