regression bug 3.1.1 => 3.1.2 (3.1.3 or 3.1.4) in the populating data from one column to two properties in the class.
See original GitHub issueThe regression bug was found in the populating data from one column in DB table to two properties in the class. This bug occurs in 3.1.2 (and 3.1.3, and 3.1.4 (today build)), but not in 3.1.1 or less
Steps to reproduce
SQL test structure and inserting one row for the test:
create table test_mapping_column_2_prop
(
id bigserial not null constraint pk_test_map primary key,
test_number bigint not null
);
insert into test_mapping_column_2_prop (test_number) values (777);
Class on C# (two properties to the one column):
[Table("test_mapping_column_2_prop")]
public partial class TestMappingColumn2PropInfo
{
[Column("id"), PrimaryKey, Identity] public long Id { get; set; } // bigint
[Column("test_number"), NotNull ] public long TestNumber { get; set; } // bigint
[Column("test_number"), NotNull] public long TestNumberLast { get; set; } // bigint
}
The test C# code:
var testInfo = db.TestMappingColumn2Props.FirstOrDefault();
The output in the moment of selecting:
DataConnection: ====================================
08.10.2020 04:33:27.199 BeforeExecute
-- PostgreSQL PostgreSQL.9.5 PostgreSQL
DECLARE @take Integer -- Int32
SET @take = 1
SELECT
t1.id,
t1.test_number,
t1.test_number
FROM
test_mapping_column_2_prop t1
LIMIT :take
DataConnection: ====================================
08.10.2020 04:33:27.204 Query Execution Time (AfterExecute): 00:00:00.0050989
DataConnection: ====================================
08.10.2020 04:33:27.213 Total Execution Time (Completed): 00:00:00.0146411. Rows Count: 1.
The screenshots with the debug breakpoints shown the problem.
Version 3.1.1 works well
Version 3.1.2 works wrong
Version 3.1.3 and 3.1.4(today build) work the same wrong as Version 3.1.2…
Environment details
linq2db version: 3.1.2 Database Server: PostgreSQL 12.1 Database Provider: Npgsql 4.1.4 Operating system: Windows 10 .NET Framework: .Net Core 3.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
3.1.5 Milestone
regression bug 3.1.1 => 3.1.2 (3.1.3 or 3.1.4) in the populating data from one column to two properties in the class. severity: regression...
Read more >ArcGIS Pro 3.1 Issues Addressed
BUG -000154923 After upgrading a PostgreSQL 10.7.1 geodatabase, editing feature classes fails due to some functions not being owned by the data owner...
Read more >What's new — Covasim 3.1.4 documentation
Fixed plotting bug that prevented MultiSim plots from appearing correctly in Jupyter notebooks with (ironically) cv.options(jupyter=True) . Fixed bug with ...
Read more >Chapter 3 Numpy and Pandas | Machine learning in python
Pandas contains two central data types: Series and DataFrame. Series is often used as a second-class citizen, just as a single variable (column)...
Read more >JBoss Server Manager Reference Guide
Starting JBoss Server™ is fairly straightforward. You can control the server state with the help of a special toolbar in the Servers view....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you provide more details why do you have two mappings for single column?
Super! Thank you very much!!!