dependabot-preview[bot]
6c506c1c16
Update base64 requirement from 0.12 to 0.13
...
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64 ) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.0...v0.13.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 13:18:42 +00:00
Steven Fackler
b6e1ab9d1e
Merge pull request #659 from benesch/chrono-no-oldtime
...
Disable chrono's "oldtime" feature to drop time v0.1
2020-09-25 15:52:20 -04:00
Nikhil Benesch
bb961edcc4
Disable chrono's "oldtime" feature to drop time v0.1
...
The latest version of chrono, v0.4.16, permits removing its dependency
on the long-deprecated time v0.1 crate by disabling the "oldtime"
feature.
For backwards compatibility, chrono is leaving the "oldtime" feature on
by default, so disabling the "oldtime" feature requires disabling all
default features and then re-enabling the one default feature ("clock")
that rust-postgres needs.
Note that this change does not cause any backwards-compatibility
problems for users of rust-postgres. The "oldtime" feature controls only
whether `time_v01::Duration` and `chrono::Duration` are the same type
and does not affect any of the APIs used by rust-postgres.
2020-09-25 15:36:51 -04:00
Steven Fackler
eabcc28657
Merge pull request #655 from benesch/notice-callback
...
Permit configuring the notice callback
2020-09-22 20:51:55 -04:00
Nikhil Benesch
4af6fcd911
Permit configuring the notice callback
...
Right now the behavior is hardcoded to log any received notices at the
info level. Add a `notice_callback` configuration option that permits
installing an arbitrary callback to handle any received notices.
As discussed in #588 .
2020-09-21 20:04:35 -04:00
Steven Fackler
cd31c02d77
Merge pull request #657 from botika/master
...
Clean code at connect function
2020-09-20 14:06:25 -04:00
Juan Aguilar Santillana
a2ca75e9c4
Prettify host
cast as str
2020-09-20 10:43:22 +00:00
Juan Aguilar Santillana
391a54aea1
Avoiding get reference of a u16
2020-09-20 10:37:15 +00:00
Steven Fackler
4237843a0e
Merge pull request #648 from sfackler/dependabot/cargo/hmac-0.9
...
Update hmac requirement from 0.8 to 0.9
2020-08-12 12:03:16 -04:00
dependabot-preview[bot]
26d7b38b03
Update hmac requirement from 0.8 to 0.9
...
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs ) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases )
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.8.0...hmac-v0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-12 13:17:41 +00:00
Steven Fackler
fc131afa9c
Merge pull request #645 from jyn514/display
...
Give a more helpful message on error
2020-08-01 16:24:02 -04:00
Joshua Nelson
61f6e3e5c4
Add newline before DETAIL and HINT
2020-08-01 11:12:22 -04:00
Joshua Nelson
ce7ce310b9
Give a more helpful message on error
...
Before:
```
database error: ERROR: insert or update on table "owner_rels" violates foreign key constraint "owner_rels_cid_fkey"
```
After:
```
database error: ERROR: insert or update on table "owner_rels" violates foreign key constraint "owner_rels_cid_fkey"
DETAIL: Key (cid)=(4) is not present in table "releases".
```
2020-07-31 20:59:57 -04:00
Steven Fackler
286b9dcd0a
Merge pull request #641 from benesch/infinity-overflow
...
Use checked arithmetic when decoding into chrono types
2020-07-31 09:30:31 -04:00
Nikhil Benesch
a30f0b6c05
Use checked arithmetic when decoding into chrono types
...
This avoids an overflow panic if the timestamp is the special "infinity"
or "-infinity" value and produces an error instead.
Fix #640 .
2020-07-30 22:52:56 -04:00
Steven Fackler
bc682b3103
Explicitly terminate the connection in sync API
...
Closes #613
2020-07-27 21:42:02 -04:00
Steven Fackler
f6620e6a24
Release postgres v0.17.5
2020-07-19 13:27:27 -06:00
Steven Fackler
a4a68d543d
Ensure transactions roll back immediately on drop
...
Closes #635
2020-07-19 13:24:46 -06:00
Steven Fackler
4fd7527c3c
Merge pull request #632 from shelvacu/patch-1
...
Add Debug and Clone to `AsyncMessage`
2020-07-13 18:22:35 -04:00
shelvacu
c9a21f8398
Add Debug and Clone to AsyncMessage
2020-07-13 15:15:34 -07:00
Steven Fackler
90f763b968
Release postgres-protocol v0.5.2
2020-07-06 16:30:43 -04:00
Steven Fackler
27b36f53e2
Release postgres v0.17.3
2020-07-03 15:23:33 -04:00
Steven Fackler
170c5a5e13
Release tokio-postgres v0.5.5
2020-07-03 15:19:15 -04:00
Steven Fackler
fe904154df
Release postgres-types v0.1.2
2020-07-03 15:16:54 -04:00
Steven Fackler
469b72d883
Merge pull request #623 from jakubadamw/geo-types-0_6
...
Add support for the 0.6 version of `geo_types`.
2020-07-03 15:14:50 -04:00
Steven Fackler
f3e6045561
Merge pull request #624 from sfackler/dependabot/cargo/parking_lot-0.11
...
Update parking_lot requirement from 0.10 to 0.11
2020-06-24 19:13:25 -04:00
dependabot-preview[bot]
f5c1902d7d
Update parking_lot requirement from 0.10 to 0.11
...
Updates the requirements on [parking_lot](https://github.com/Amanieu/parking_lot ) to permit the latest version.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.10.0...0.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-24 13:18:13 +00:00
Jakub Wieczorek
5d9acb1eb1
Add support for the 0.6 version of geo_types
.
...
This change drops the support for the 0.5 version by renaming the feature,
as no version of `postgres` with it included has ever been released.
2020-06-24 12:28:21 +02:00
Steven Fackler
598fc0f1a8
Merge pull request #618 from sfackler/update-mac
...
Update hmac and sha2
2020-06-10 20:03:02 -04:00
Steven Fackler
c845a3683e
rustfmt
2020-06-10 16:56:22 -07:00
Steven Fackler
3e67dbb773
Fix clippy
2020-06-10 16:54:07 -07:00
Steven Fackler
a12efc41d7
rustfmt
2020-06-10 16:46:55 -07:00
Steven Fackler
58a7856646
Update hmac and sha2
2020-06-10 16:45:58 -07:00
Steven Fackler
2b59b7e63c
fix clippy
2020-05-25 05:54:19 -07:00
Steven Fackler
e7661fd71f
Fix geo-types tests
2020-05-25 05:48:40 -07:00
Steven Fackler
98f2694ae4
Merge pull request #605 from jakubadamw/geo-types-0_5
...
Add support for geo-types=0.5
2020-05-25 08:33:57 -04:00
Jakub Wieczorek
887be86816
Add support for geo-types=0.5
...
Support for geo-types=0.4 (via the `with-geo-types_04` feature) has been preserved for convenience.
2020-05-25 13:45:17 +02:00
Steven Fackler
9fe4eee36f
Merge pull request #603 from naim94a/patch-1
...
fix typo
2020-05-12 07:03:31 -04:00
Naim A
a1efddd64a
fix typo
2020-05-12 13:48:01 +03:00
Steven Fackler
f9ba58967b
Release postgres v0.17.3
2020-05-01 16:15:31 -07:00
Steven Fackler
66f5a8bbc5
Release tokio-postgres v0.5.4
2020-05-01 16:10:41 -07:00
Steven Fackler
c6a6686ba7
Merge pull request #600 from nvanbenschoten/nvanbenschoten/savepoints-2-the-revival-album
...
Re-add savepoint method to Transaction
2020-05-01 19:03:24 -04:00
Nathan VanBenschoten
64d6e97eff
Re-add savepoint method to Transaction
...
Revives #184 .
The rewrite for async/await and Tokio accidentally lost functionality
that allowed users to assign specific names to savepoints when using
nested transactions. This functionality had originally been added
in #184 and had been updated in #374 .
This commit revives this functionality using a similar scheme to the
one that existed before. This should allow CockroachDB users to update
to the next patch release of version `0.17`.
2020-05-01 12:55:48 -04:00
Steven Fackler
e3d3c6d5cd
Merge pull request #590 from benesch/copy-out-short-reads
...
Don't accidentally return early from CopyOutReader
2020-04-01 14:25:10 -04:00
Nikhil Benesch
dd0c39e041
Don't accidentally return early from CopyOutReader
...
The COPY OUT protocol allows sending CopyData packets that have no data.
The (synchronous) CopyOutReader needs to be careful not to return an
empty slice in this case, but instead request more data, since an empty
slice is taken to mean EOF.
2020-04-01 14:17:02 -04:00
Steven Fackler
70ca1b4fa0
Merge pull request #588 from sfackler/notifications
...
Add a notification API to the blocking client
2020-03-23 07:29:32 -04:00
Steven Fackler
2e0ad717f9
Bump CI for rustfmt change
2020-03-22 15:25:08 -07:00
Steven Fackler
3c4a0af6ff
Add a notification API to the blocking client
...
This mirrors the implementation in the old 0.15 release, but is quite a
bit simpler now that we're built on the nonblocking API!
2020-03-22 15:22:07 -07:00
Steven Fackler
fd3a99c225
Don't spawn off connection in blocking impl
...
We can now directly return fatal errors, and intercept notifications
2020-03-22 12:05:00 -07:00
Steven Fackler
928a7169d4
Merge pull request #584 from bikeshedder/feature/feature-doc
...
Add documentation for crate features
2020-03-18 17:08:40 -04:00