Skip to content

Conversation

@alex-kulakov
Copy link
Contributor

A summary of what's made:

  • global setup for internal logging (also updated test adapter).
  • The ChainedBufferTest is now in right namespace.
  • Updated MySQL client library package. The 6.10.4 had a bug causing Nested Transaction error out of nowhere.
  • A lot of manual serialization implementations for some collections, comparers and comparer-related types.
  • ISerializable.GetObjectData() method implementations in SerializableExpressions were marked as [SecurityCritical] like they suppose to be (actually this is an off-topic change, I did it for good measure since I'd already been working on serialization :) )
  • The ThreadingTest lost its Async part (I commented it out) because there is no support for BeginInvoke/EndInvoke methods this part used.

AlexUstinov
AlexUstinov previously approved these changes Mar 15, 2021
Co-authored-by: Aleksandr Ustinov <alex.ustinov@servicetitan.com>
@alex-kulakov alex-kulakov merged commit aedcd10 into 6.0 Mar 18, 2021
@alex-kulakov alex-kulakov deleted the 6.0-core-tests-fixes branch March 18, 2021 11:31
alex-kulakov added a commit that referenced this pull request Jun 22, 2023
* Move SqlInsertValuesCollection to Dml.Collections folder

* Add rows collection to SqlInsert

+ mark Values as obsolete

* Test for SqlInsert

* Correct switch from strict number of conditions to default number of conditions

- Return back WellKnown.MaxNumberOfConditions as [Obsolete];
- Add WellKnown.DefaultMaxNumberOfConditions as replacement;
- Initialize MultiRowInsertLevel2BatchSize with
  DefalultMaxNumberOfConditions;

* Proper implementation of DomainConfiguration.MaxNumberOfConditions

- check if configuration instance is locked and deny changing if it is;
- initialized with well-known constant instead of literal value;
- added configuration element to have support for this parameter in
  *.config files

* fix

* Add test for loading of DomainConfiguration with new property from config files

Offtop: tagLocation and other forgotten-to-add properties are tested

* Fix wrong translation of values section

* DomainConfiguration cloning clones MaxNumberOfConditions

* Return original types of properties in IPersistDescriptor

Keeps backwards compatibility

* Multi-row insert not only for 1-column tuples

- adds PersistParameterBinding.RowIndex + ctors to init the value,
  by default row index is 0. This property will keep track of what row
  of SqlPersistTask.Tuples is the source of value
- CommandFactory uses dedicated algorithms for Tuple and for collection
  of Tuples. First one keeps original algorithm before any changes, and
  the second one uses RowIndex to get required row and FieldIndex to
  find value within row
- return original private SqlSessionHandler.Store() method, it works
  without checking for count of values in tuples.

* No use of SqlInsert.Values, SqlInsert.ValueRows

- new InsertSection.NewRow removed, no need in it
- SqlInsert.Values type returned to original Dictionary, removed
  internal collection type and.
- all usages of SqlInsert.Values

* IMultiRecordPersistDescriptor-related changes

- the interface properties renamed
- added lazy alternative for one-row request with default implementation
  to IPersistRecord.StoreRequest. This keeps original interface API and
  have lazy request. TemporaryTableDescriptor uses only lazy properties
  as well as TemporaryTableManager, original StoreRequest implementaion in
  TemporaryTableDescriptor returns Lazy<>.Value and hidded.
- WellKnown constants renamed accordingly to IMultiRecordPersistDescriptor
  properties
- added summaries for interfaces' properties and WellKnown constants

* Rename file containing interfaces

* Remove unused code + commited code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants