Sample rest calls in requests.rest
if you want to walk through each call until it breaks.
I haven't yet figured out what is wrong, it feels like after it encounters a certain row, the timestamps become weird, until you acquire a new connection.
At some point, neon starts responding with 2000-01-01T00:00:00
as the timestamp for a row in the idea
table, but as you can see from src/main/resources/schema.sql
, all rows have valid timestamps.
- Build and run the docker container below
docker build -t neon-bug . docker run -p 8080:8080 -e DB_URL=jdbc:postgresql://<host>.cloud.neon.tech/<db> -e DB_USER=<user> -e DB_PASS=<pass> neon-bug
- Run the below curl command to fetch a row with
created_at
of2000-01-01T00:00:00
curl localhost:8080/bug
- Running the above command again will return a different row.