What's Changed
Breaking changes
- Reject DSN queries Go cannot parse by @nineinchnick in #290
- Refuse a nextUri that downgrades https to http by @slachiewicz in #270
- Refuse coordinator redirects with a custom client too by @slachiewicz in #271
- Require TLS for access tokens and forwarded tokens by @slachiewicz in #272
- Validate a DSN like a Config passed to NewConnector by @nineinchnick in #299
Features
- Read dates and timestamps with years outside 0000-9999 by @nineinchnick in #293
- Read values without a zone in a configurable zone by @nineinchnick in #292
- Share one HTTP transport per Connector by @nineinchnick in #298
- Let rows of an earlier execution keep reading their own query by @nineinchnick in #301
- Reuse one buffer for objects stored out of field order by @nineinchnick in #303
Bug fixes
- Keep the case of ROW field names in column types by @nineinchnick in #291
- Validate spooled segment sizes before allocating by @slachiewicz in #266
- Fail spooled queries whose segments do not line up by @slachiewicz in #267
- Skip spooled segments without rows by @slachiewicz in #268
- Queue spooled segments without blocking the caller by @slachiewicz in #269
- Keep credentials out of configuration errors by @slachiewicz in #273
- Close idle connections of transports the driver creates by @slachiewicz in #274
- Limit the progress callback to the query it was passed with by @slachiewicz in #275
- Stop a query's goroutines when its rows are closed by @slachiewicz in #276
- Keep rows of an earlier execution off the next one by @slachiewicz in #277
- Reject VARIANT values whose object fields share their bytes by @slachiewicz in #278
- Load only zone IDs and bound the zone cache by @slachiewicz in #279
- Cancel the query when its first page cannot be fetched by @nineinchnick in #300
Other changes
- Document the fixed-offset default time zone on Windows by @nineinchnick in #289
Full Changelog: v1.4.1...v1.5.0