Austin Bonander
9fc9e7518e
feat: Text
adapter ( #2894 )
2023-11-22 17:06:47 -08:00
Austin Bonander
58cb18a47a
fix: correct decoding of rust_decimal::Decimal
for high-precision values ( #2820 )
...
also fixes handling of feature flags
2023-10-16 14:03:28 -07:00
hgranthorner
56945d7396
feat(citext): support postgres citext ( #2478 )
...
* feat(citext): implement citext for postgres
* feat(citext): add citext -> String conversion test
* feat(citext): fix ltree -> citree
* feat(citext): add citext to the setup.sql
* chore: address nits to #2478
* Rename `PgCitext` to `PgCiText`
* Document when use of `PgCiText` is warranted
* Document potentially surprising `PartialEq` behavior
* Test that the macros consider `CITEXT` to be compatible with `String` and friends
* doc: add `PgCiText` to `postgres::types` listing
* chore: restore missing trailing line break to `tests/postgres/setup.sql`
---------
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2023-10-11 18:03:17 -07:00
Yudai Fukushima
846dcfe52a
fix: decode postgres time without subsecond ( #2784 )
...
* fix: decode postgres time without subsecond
* update: decode postgres time without subsecond by making subsecond optional
2023-10-04 16:56:14 -07:00
Austin Bonander
eade49cfb0
0.7.0-alpha.1 release
2023-02-21 14:56:54 -08:00
Paolo Barbolini
171b00de2e
Start testing on Postgres 15 and drop Postgres 10 ( #2193 )
...
* CHANGELOG: mention that users should upgrade CLI
* Drop postgres 10 start testing postgres 15
---------
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2023-02-21 13:25:25 -08:00
Austin Bonander
054f61980a
feat: implement testing utilities ( #2001 )
2022-08-02 14:38:12 -07:00
Valentin
9ca1fbf2ca
Support Rust arrays in Postgres ( #1953 )
2022-07-08 16:56:47 -07:00
Paolo Barbolini
ba123e62fa
Update time to 0.3.2 ( #1455 )
...
Co-authored-by: Tyler Hill <tyhi@tyhi.rs>
2022-04-14 15:11:46 -07:00
Paolo Barbolini
a97208c016
postgres: use Oid
type everywhere instead of u32
( #1602 )
...
* postgres: use Oid type instead of u32
* Make serde happy
* Expose the inner u32
* docs
* Try to fix tests
* Fix unit tests
* Fix order
* Not sure what happened here
2022-04-14 15:07:45 -07:00
Bastian
6674e8ba96
Basic support for ltree ( #1696 )
...
* support ltree
* add default and push to PgLTree
* add more derived for ltree
* fix copy/paste
* Update sqlx-core/src/error.rs
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* PR fixes
* ltree with name instead of OID
* custom ltree errors
* add pop ot PgLTree
* do not hide ltree behind feature flag
* bytes() instead of chars()
* apply extend_display suggestion
* add more functions to PgLTree
* fix IntoIter
* resolve PR annotation
* add tests
* remove code from arguments
* fix array
* fix setup isse
* fix(postgres): disable `ltree` tests on Postgres 9.6
Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com>
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2022-02-15 20:40:03 -08:00
VersBinarii
fd2d26e12d
Fix power calculation when encoding the BigDecimal into NUMERIC ( #1692 )
...
* Show failing test
0.002 will be encoded as 0.02
* The power calculation should depend on the offset
of the digits
2022-02-11 12:28:07 -08:00
meh
62b57f021f
fix(postgres): allow rust_decimal::Decimal in PgRange ( #1523 )
...
* fix(postgres): allow rust_decimal::Decimal in PgRange
* test(postgres): add tests for BigDecimal and Decimal in ranges
2021-11-03 12:28:39 -07:00
Atkins
9f7205e80f
Fix GitHub Actions and integration test ( #1346 )
...
* fix test suite
* rustfmt
* need Row
* test: fix integration test scripts and update the upstream supported databases
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* ci(actions): update supported databases
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* ci(actions): use `pg_isready` instead of `sleep` to avoid error cause by database not ready
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* feat(core): add `trait PgConnectionInfo` for connection parameter status from server
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* test(postgres): fix integration test for postgres
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* test(mysql): fix integration tests
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* ci(actions): test database against the oldest and newest supported versions
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
* docs(core): document `trait PgConnectionInfo`
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
Co-authored-by: Montana Low <montanalow@gmail.com>
2021-07-28 14:00:34 -07:00
nomick
be189bd11e
Support MACADDR in Postgres ( #1329 )
2021-07-19 16:55:53 -07:00
Julius de Bruijn
a0007b4e98
Fixing BigDecimal conversion for PostgreSQL
...
Now working properly with numbers, such as `0.01` and `0.012`.
2020-11-04 17:09:01 -08:00
Julius de Bruijn
333ee69f63
A test to reveal a bug with BigDecimal and PostgreSQL
2020-11-04 17:09:01 -08:00
Julius de Bruijn
1a59d3308a
Pg: Implementing BIT
and VARBIT
using BitVec
2020-07-27 03:36:44 -07:00
Ryan Leckey
ee4d9b5412
fix(postgres): use the element type info from the protocol if available for array element decoding
...
fixes #537
2020-07-20 23:53:18 -07:00
Ryan Leckey
fa40e9e55f
implement support for postgres TIMETZ type
...
Co-authored-by: Julius de Bruijn <julius+github@nauk.io>
2020-07-17 03:22:40 -07:00
Julius de Bruijn
f246d41aed
Fixed an overflow with a negative scale
2020-07-09 12:32:19 -07:00
Julius de Bruijn
245d53e484
Test Decimal conversions in my and pg
2020-07-09 12:32:19 -07:00
Julius de Bruijn
b3db51cdfc
Implement a proper type for money
2020-07-03 03:57:20 -07:00
Loïc Carr
71cb68b2f4
feat(postgres) Create bindings for PgInterval
2020-06-27 17:36:06 -07:00
Ryan Leckey
c9f3e1adca
feat(postgres): add support for built-in range types and allow derives to handle custom range types
...
Co-authored-by: Caio <c410.f3r@gmail.com>
2020-06-12 15:33:19 -07:00
Caio
d4329e98d4
refactor: prepare to support postgres ranges
...
- Remove Type bound from Encode + Decode which removes the defaults
for produces() and accepts(). This allows custom type implementations
to be more flexible.
2020-06-12 15:33:19 -07:00
Ryan Leckey
55a59121ee
test: small fix to sql in json test
2020-06-07 04:07:33 -07:00
Ryan Leckey
e5b6047009
feat: introduce docker-compose based testing for running locally against many database combinations
2020-05-30 17:51:55 -07:00