Cédric Luthi
9ed3525598
Do not close the inner reader when disposing wrapped data readers ( #2100 )
...
When disposing wrapped readers, only call Dispose() on the inner reader and let it catch exceptions if appropriate.
Note: this actually happened with `Microsoft.Data.SqlClient`.
```
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
at void Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
at void Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, bool callerHasConnectionLock, bool asyncClose)
at bool Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, out bool dataReady)
at bool Microsoft.Data.SqlClient.SqlDataReader.TryCloseInternal(bool closeReader)
at void Microsoft.Data.SqlClient.SqlDataReader.Close()
at void Dapper.DbWrappedReader.Dispose(bool disposing) in /_/Dapper/WrappedReader.cs:line 149
at ValueTask System.Data.Common.DbDataReader.DisposeAsync()
```
2024-07-03 13:32:18 +01:00
Marc Gravell
52160dc446
missed one
2024-04-30 20:28:19 +01:00
Marc Gravell
bfa91d3e3c
change dapper-plus citation ( #2083 )
2024-04-30 20:23:51 +01:00
Marc Gravell
13b2ef2cc2
Update NonCLA.md
2024-04-28 10:25:21 +01:00
Marc Gravell
8d7d262871
Update cla.yml
2024-04-28 10:07:12 +01:00
Marc Gravell
9212a8da6e
Non-CLA
2024-04-28 10:04:28 +01:00
Marc Gravell
d9fed73d00
Merge branch 'main' of https://github.com/DapperLib/Dapper
2024-04-26 09:03:21 +01:00
Marc Gravell
9fdb30a43e
disable DateOnly / TimeOnly support - see #2071 / #2072 ( #2080 )
2024-04-26 09:02:37 +01:00
github-actions[bot]
c5f1206933
Creating file for storing CLA Signatures
2024-04-26 07:50:49 +00:00
Marc Gravell
907a4d9b35
disable DateOnly / TimeOnly support - see #2071 / #2072
2024-04-26 08:49:47 +01:00
Marc Gravell
2fa046cd39
Create cla.yml
2024-04-13 09:07:53 +01:00
Marc Gravell
b51cc77596
Update Readme.md
...
(actually just to bump build)
2.1.44
2024-04-12 12:12:02 +01:00
Marc Gravell
92c81bc2c2
fix image in readme
2024-04-12 11:57:42 +01:00
Marc Gravell
fa9c96aec0
revert #2050 - see #2049 for more details ( #2070 )
...
* revert #2050 - see #2049 for more details
2.1.42
2024-04-12 11:13:05 +01:00
Marc Gravell
ad16263ac4
tyop
2024-04-12 09:43:31 +01:00
Marc Gravell
a11879c6dc
more context
2024-04-12 09:41:32 +01:00
Marc Gravell
d40f9f0ca9
image size
2024-04-12 09:17:59 +01:00
Marc Gravell
803e3510ea
Dapper Plus ( #2069 )
...
add Dapper Plus as sponsor
2024-04-12 09:13:24 +01:00
Marc Gravell
402f20ce37
implement DateOnly/TimeOnly ( #2051 )
...
fix #1715
adds net6 TFM
2.1.37
2024-03-07 12:19:30 +00:00
Marc Gravell
87eb033118
string and byte[] : add UseGetFieldValue ( #2050 )
...
* string and byte[] : add UseGetFieldValue to prevent problems with npgsql using global deserializer
* switch to GetFieldValue<T> changes some messaging in invalid cast scenarios; if anything, new version is clearer, so: fine
* test fixes
2024-03-06 20:58:21 +00:00
Marc Gravell
360367ca54
add REVERT to CommandText checklist ( #2048 )
2.1.35
2024-03-06 14:59:19 +00:00
Ion Dormenco
8d2cb0cf35
Update Readme.md ( #2047 )
...
Fix path to Dapper.Rainbow readme
2024-02-18 15:14:08 +00:00
Daryl Johnston
108806565d
Issue #2044 ( #2045 )
2024-02-17 08:03:01 +00:00
Kasper B. Graversen
7d811c4665
dapper.rainbow guide ( #2043 )
2024-02-17 00:16:42 +00:00
Kasper B. Graversen
4f8e92fba5
Exposing the transaction used in class Database. ( #2038 )
...
This enables to do queries not supported by rainbow within the same transaction
Closes #1944
2024-02-15 07:30:52 +00:00
Marc Gravell
3904675a78
CI: use preinstalled sdk ( #2042 )
...
* CI: use preinstalled sdk
* package updates, in particular SQL Server CVE (tests only)
2024-02-13 16:27:00 +00:00
Ohorodniichuk Dmytro
8f369914ac
Issue #1164 ( #1795 )
...
Fix unsigned types mapping arithmetic overflow
Add tests to reproduce issue #1164
Co-authored-by: Dmytro Ohorodniichuk <dmytro.ohorodniichuk@neogames.com >
2024-01-07 21:42:09 +00:00
Marc Gravell
d7c16035d2
fix codegen error in value-type multimap #2005 ( #2022 )
...
in horizontal multi-map, don't "returnValueLocal = null" for value-types (invalid IL)
fix #2005
2.1.28
2024-01-02 15:32:04 +00:00
Andrii Kurdiumov
4160c9f344
Update benchmarks with latest results. ( #2016 )
...
* Update benchmarks with latest results.
* Address PR feedback
2023-12-18 12:21:48 +00:00
Ron
3c3509f373
Update SqlMapper.cs ( #2010 )
...
Fixed typo in comments
2023-12-07 23:20:02 +00:00
0nly1ken0bi
0cd331b044
Fixed documentation to read better ( #2008 )
2023-12-03 09:40:54 +00:00
Marc Gravell
c46c69a174
1. give clearer error messages when an ICustomQueryParameter is null ( #2003 )
...
2. provide a convenience .ctor on DbString
2.1.24
2023-11-23 08:58:18 +00:00
Bill Robertson
0272d82b7d
chore: Update Readme.md ( #2002 )
...
Updates url to point to new release notes publication. The .io one said it wasn't in use anymore and to use the github.com releases information.
2023-11-21 06:50:02 +00:00
Nick Craver
cea07ab771
AppVeyor: Restore MySQL ( #1998 )
...
Looks like the image was borked with MySQL 8 went in (because it's still trying to start 5.7), see https://github.com/appveyor/ci/issues/3894 .
2023-11-13 08:00:27 -05:00
Marc Gravell
947b582c79
fix #1993 - when matching properties, prefer non-normalized property name ( #1997 )
2.1.21
2023-11-11 08:51:05 +00:00
Marc Gravell
5bb98eb52a
mysql on CI has gone rogue; disable? ( #1996 )
2023-11-11 07:57:56 +00:00
Marc Gravell
6fdafc32e2
add commmit and rollback to "text" exclusion list ( #1995 )
2023-11-10 19:17:10 +00:00
Thomas Ingham
bd649f0e58
Update Readme.md ( #1994 )
...
Ironic change of opportunity.
2023-11-09 14:16:55 +00:00
Korolev Dmitry
f0e61a740b
include ExplicitConstructorAttribute's targets to constructor&method ( #1982 )
...
* add method target for explicitconstructor
* add a noting comment (usage is limited with Dapper.AOT)
2023-10-22 08:54:13 +01:00
Marc Gravell
2f56056a89
- expand auto-sproc detection to handle more scenarios and explicit exclusions ( #1989 )
...
- add net7 target
- use regex generator when available (net7+)
- fix #1984
2023-10-20 09:24:01 +01:00
Marc Gravell
cdadfa6db6
whitespace for auto-SP detection: use unicode spec via regex ( #1987 )
...
* add fix and test for #1975
* wrong ticket number; is #1986
2.1.15
2023-10-19 12:25:11 +01:00
Marc Gravell
b446241da3
cite AWS
2023-10-18 20:38:33 +01:00
Marc Gravell
a93678e485
move release notes to GitHub
2023-10-13 07:33:27 +01:00
Marc Gravell
d91f993dc6
change NRT for ITypeMap.GetConstructorParameter ( #1980 )
...
* release notes for NRT tweak
* PR number
2023-10-13 07:11:10 +01:00
Marc Gravell
b8d119fa63
NRT tweak on GetConstructorParameter
2.1.11
2023-10-13 07:06:15 +01:00
Marc Gravell
8d53acb401
the $ support added for DuckDB does not need to exacerbate the OLEDB problem ( #1979 )
2023-10-13 07:01:56 +01:00
Giorgi Dalakishvili
19193b52bb
Add a setting to turn off Ole Db "smell check" ( #1974 )
...
* Add a setting to turn off Ole Db "smell check"
* Rename setting, fix logic
* Test for SupportLegacyParameterTokens
* Fix exception type
* Add release note
2023-10-11 13:10:00 +01:00
Giorgi Dalakishvili
2837480903
Add DuckDB tests ( #1970 )
...
* Add DuckDB tests
* Update DuckDB.NET.Data.Full version
2023-10-11 12:41:06 +01:00
Marc Gravell
a37b151bb7
auto-detect stored procedures as anything without whitespace ( #1975 )
...
* 1. auto-detect stored procedures as anything without whitespace
2. we have public fields? (hangs head in shame)
* release notes
* no need to use regex
2023-10-10 15:06:21 +01:00
Marc Gravell
47ef1e7100
missed an object? type-handler
2023-09-14 06:25:35 +01:00