Skip to content

Commit e277623

Browse files
committed
Postgres testing
1 parent 2d7ab46 commit e277623

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.v3.ttinclude

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14284,7 +14284,7 @@ ORDER BY R.specific_schema, R.routine_name, R.routine_type;";
1428414284
protected override string TriggerSQL()
1428514285
{
1428614286
return @"
14287-
SELECT event_object_schema AS SchemaName,
14287+
SELECT DISTINCT event_object_schema AS SchemaName,
1428814288
event_object_table AS TableName,
1428914289
trigger_name AS TriggerName
1429014290
FROM INFORMATION_SCHEMA.triggers

Generator.Tests.Integration/TestComparison/EfrpgTest_PostgreSQL_Ef6_FkLegacy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ object IDbAsyncEnumerator.Current
496496
public class Allcolumntype
497497
{
498498
public long Bigint { get; set; } // bigint (Primary key)
499-
public bool? Bit1 { get; set; } // bit_1 (length: 1)
499+
public BitArray? Bit1 { get; set; } // bit_1 (length: 1)
500500
public BitArray? Bit8 { get; set; } // bit_8 (length: 8)
501501
public bool? Boolean { get; set; } // boolean
502502
public NpgsqlBox? Box { get; set; } // box

Generator.Tests.Integration/TestComparison/EfrpgTest_PostgreSQL_EfCore7_FkLegacy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ public void Dispose() { }
824824
public class Allcolumntype
825825
{
826826
public long Bigint { get; set; } // bigint (Primary key)
827-
public bool? Bit1 { get; set; } // bit_1 (length: 1)
827+
public BitArray? Bit1 { get; set; } // bit_1 (length: 1)
828828
public BitArray? Bit8 { get; set; } // bit_8 (length: 8)
829829
public bool? Boolean { get; set; } // boolean
830830
public NpgsqlBox? Box { get; set; } // box

Generator.Tests.Integration/TestComparison/PostgisTest_PostgreSQL_EfCore7_FkLegacy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
410410
modelBuilder.ApplyConfiguration(new tiger_ZipStateLocConfiguration());
411411
modelBuilder.ApplyConfiguration(new topology_LayerConfiguration());
412412
modelBuilder.ApplyConfiguration(new topology_TopologyConfiguration());
413+
414+
modelBuilder.Entity<topology_Layer>().ToTable(tb => tb.HasTrigger("layer_integrity_checks"));
413415
}
414416

415417

Generator/Readers/PostgreSqlDatabaseReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected override string SequenceSQL()
203203
protected override string TriggerSQL()
204204
{
205205
return @"
206-
SELECT event_object_schema AS SchemaName,
206+
SELECT DISTINCT event_object_schema AS SchemaName,
207207
event_object_table AS TableName,
208208
trigger_name AS TriggerName
209209
FROM INFORMATION_SCHEMA.triggers

0 commit comments

Comments
 (0)