Jack Christensen
fbe354aea1
Remove editor specific .gitignore
2020-09-15 17:21:13 -05:00
bakmataliev
6777e0294b
eliminate regex dep
2020-09-15 13:24:17 +03:00
bakmataliev
cd9b888ff6
Remove unnecessary check for null
2020-09-11 16:28:49 +03:00
bakmataliev
d540ca39be
New marshalers have been added
2020-09-11 16:24:48 +03:00
Jack Christensen
be69c1c10b
Fix parseDSNSettings with bad backslash
...
fixes #49
2020-09-10 19:40:52 -05:00
Harmen
040df1ccef
fix link to 'pgtype' repo
2020-09-10 09:30:26 -05:00
Jack Christensen
b6b3a86310
Update CI Go versions
2020-09-05 13:26:56 -05:00
Jack Christensen
a8abb80082
Update CI Go versions
2020-09-05 13:26:19 -05:00
Jack Christensen
d4a300bd58
Fix: FieldDescriptions are available on Rows before calling Next
2020-09-05 13:24:57 -05:00
Jack Christensen
0d4f029683
Exec(Params|Prepared) return ResultReader with FieldDescriptions loaded
...
Previously, it wasn't loaded until NextRow was called the first time.
2020-09-05 13:14:14 -05:00
Jack Christensen
2ec377350b
Update Rows.Scan documentation to reflect reality.
...
Previously, the Scan documentation stated that scanning into a []byte
will skip the decoding process and directly copy the raw bytes received
from PostgreSQL.
This has not been true for at least 2 months. It is also undesirable
behavior in some cases such as a binary formatted jsonb. In that case
the '1' prefix needs to be stripped to have valid JSON. If the raw
bytes are desired this can easily be accomplished by scanning into
pgtype.GenericBinary or using Rows.RawValues.
In light of the fact that the new behavior is superior, and that it has
been in place for a significant amount of time, I have decided to
document the new behavior rather than change back to the old behavior.
2020-09-05 11:26:19 -05:00
Jack Christensen
e7d2b057a7
Text formatted values except bytea can be directly scanned to []byte
...
This significantly improves performance of scanning text to []byte as it
avoids multiple allocations and copies.
2020-09-05 11:13:53 -05:00
Jack Christensen
9da6afcad7
Fix selecting empty array
...
Failing test was in pgx: TestReadingValueAfterEmptyArray
2020-09-05 10:56:22 -05:00
Jack Christensen
79b05217d1
Fix JSONBArray to have elements of JSONB
2020-09-04 18:41:34 -05:00
Jinzhu
5b06f03d0a
Fix SimpleProtocol with prepared statement
2020-08-31 17:06:36 -05:00
Sebastiaan Mannem
5db484908c
Changing SendBytesWithResults to ReceiveResults (that only does the reading).
2020-08-22 20:38:04 -05:00
Sebastiaan Mannem
1debbfeec4
Adding SendBytesWithResults option to receive data after sending a message (used by copy-both)
2020-08-22 20:38:04 -05:00
Jack Christensen
43ce317556
Plan scans even if destination is nil
...
fixes #810
2020-08-21 18:34:52 -05:00
Jack Christensen
997a16dbc5
Update pgconn for renamed CleanupChan
2020-08-20 22:09:50 -05:00
Jack Christensen
fdfc783345
Rename CleanupChan to CleanupDone
2020-08-20 22:08:40 -05:00
Jack Christensen
39b096d01e
pgxpool waits for connection cleanup to finish before making room in pool
...
refs #679
2020-08-20 22:04:56 -05:00
Jack Christensen
3eb5432c47
Add PgConn.CleanupChan
2020-08-20 22:00:21 -05:00
Simo Haasanen
ec14212d30
Add comments to explain the use of reflection after type assertion.
...
Removes one local variable, which is used twice only in an error.
2020-08-09 09:17:40 +01:00
Simo Haasanen
b90570feb5
Restored more optimised array type conversions for a few select 1D-slice types.
...
Results of calls to the reflect lib are now stored as local variables for small performance gains.
2020-08-08 19:51:37 +01:00
Simo Haasanen
449a8a4f8e
Add multidimensional array and slice support.
...
Adds array support - previously only slices were supported.
Adds new test cases for multidimensional arrays and slices.
All previous test cases are unmodified and passed (fully backwards compatible).
Removes hard-coded type conversions for arrays, instead now relies on the type support of the array element's type conversion support.
Less maintenance for arrays, new type conversions are automatically supported when array's element gains new type support.
Simplifies typed_array_gen.sh generator script by removing the hard-coded single-dimensional types for arrays.
Only typed_array.go.erb and typed_array_gen.sh have been changed + 1 new auxiliary function in array.go file + additional tests in test files for each array. Other changes are from generated code.
2020-08-07 13:10:32 +01:00
Jack Christensen
c894ca8b7d
Update pgproto3 to v2.0.4
2020-08-01 05:49:56 -05:00
Jack Christensen
b6e34b44e5
Update pgproto3
2020-07-31 17:04:18 -05:00
Jack Christensen
e9579e6249
Release v4.8.1
v4.8.1
2020-07-29 22:19:49 -05:00
Jack Christensen
cce1d671f4
Update pgconn to v1.6.4
2020-07-29 22:18:05 -05:00
Jack Christensen
f45b4d6b76
Release v1.6.4
2020-07-29 22:17:02 -05:00
Jack Christensen
44079b0d2c
Fix panic on parsing DSN with trailing '='
...
Also correctly return error with leading '='.
fixes #47
2020-07-29 22:11:15 -05:00
Jack Christensen
4e4c4ea541
Fix deadlock on error after CommandComplete but before ReadyForQuery
...
See: https://github.com/jackc/pgx/issues/800
2020-07-29 21:47:23 -05:00
Jack Christensen
b8c5857880
Release v4.8.0
v4.8.0
2020-07-22 06:49:50 -05:00
Jack Christensen
d831ba712a
Release v1.4.2
2020-07-22 06:46:27 -05:00
Jack Christensen
7673c8578d
Update changelog
2020-07-22 06:45:10 -05:00
Jack Christensen
37c9edc242
Release v1.6.3
2020-07-22 06:43:39 -05:00
Yaz Saito
b939bc8d68
Fix encoding of a large composite data type
...
If encoding a field caused a buffer reallocation, the its length would be
written to a wrong place.
2020-07-21 23:52:20 -07:00
vahid-sohrabloo
271b0ac95e
AppendCertsFromPEM doesn't have error and removes pgTLSArgs
...
AppendCertsFromPEM doesn't have error and removes pgTLSArgs because not used
2020-07-18 08:50:12 -05:00
Jack Christensen
4ebf1d2e0b
Passthrough all parameters directly to pgx
2020-07-18 08:44:57 -05:00
Jack Christensen
42cbd0fa46
Release v4.7.2
v4.7.2
2020-07-14 12:07:51 -05:00
Jack Christensen
9295bf7483
Update changelog
2020-07-14 12:07:27 -05:00
Jack Christensen
47cc8bb43e
Update pgconn and pgtype dependencies
2020-07-14 12:03:00 -05:00
Jack Christensen
7a3e774a52
Fix ArrayType DecodeBinary empty array breaks future reads
2020-07-14 11:58:10 -05:00
Jack Christensen
9b480f4785
Terminate connection when Commit fails and leaves tx open
...
refs #787
2020-07-13 22:49:35 -05:00
Jack Christensen
c8a9da960c
Revert "stdlib: close connection on Tx commit or rollback that doesn't end Tx"
...
This reverts commit 2583134306da7d77427188acc1163aa636e28904.
This fix should actually be on the main Tx implementation.
2020-07-13 22:48:28 -05:00
Jack Christensen
2583134306
stdlib: close connection on Tx commit or rollback that doesn't end Tx
...
refs #787
2020-07-13 22:40:42 -05:00
Jack Christensen
12752ce5d6
Update pgservicefile
2020-07-13 19:34:45 -05:00
Jack Christensen
aa245bcc44
Merge pull request #47 from bakape/fix/struct-padding
...
optimise struct padding
2020-07-13 07:38:09 -05:00
Jack Christensen
5b498c4529
Link to https://github.com/georgysavva/scany
...
refs #788
2020-07-13 07:18:36 -05:00
bakape
193ecfec73
optimise struct padding
2020-07-12 13:52:32 +03:00