DATA-DOG / go-txdb

Immutable transaction isolated sql driver for golang
Other
667 stars 48 forks source link

Auto increment values does not reset completely #23

Closed qburst-ambareeshb closed 5 years ago

qburst-ambareeshb commented 5 years ago

When running tests though auto increment values get cleared after closing the db connection, next time the value of auto increment field is the continuation of the previous one.

this issue is found in postgres:9.6.11-alpine

l3pp4rd commented 5 years ago

well, txdb cannot change the behavior of the sql database, that is up to the driver. all you can do is just do not depend on these incremented keys.