@@ -603,7 +603,7 @@ public async Task InsertPostgresTypes(InsertPostgresTypesArgs args)
603603 await this . Transaction . Connection . ExecuteAsync ( InsertPostgresTypesSql , queryParams , transaction : this . Transaction ) ;
604604 }
605605
606- private const string InsertPostgresTypesBatchSql = "COPY postgres_types (c_boolean, c_smallint, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_bytea) FROM STDIN (FORMAT BINARY)" ;
606+ private const string InsertPostgresTypesBatchSql = "COPY postgres_types (c_boolean, c_smallint, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_uuid, c_bytea) FROM STDIN (FORMAT BINARY)" ;
607607 public class InsertPostgresTypesBatchArgs
608608 {
609609 public bool ? CBoolean { get ; init ; }
@@ -624,6 +624,7 @@ public class InsertPostgresTypesBatchArgs
624624 public string ? CCharacterVarying { get ; init ; }
625625 public string ? CBpchar { get ; init ; }
626626 public string ? CText { get ; init ; }
627+ public Guid ? CUuid { get ; init ; }
627628 public byte [ ] ? CBytea { get ; init ; }
628629 } ;
629630 public async Task InsertPostgresTypesBatch ( List < InsertPostgresTypesBatchArgs > args )
@@ -654,6 +655,7 @@ public async Task InsertPostgresTypesBatch(List<InsertPostgresTypesBatchArgs> ar
654655 await writer . WriteAsync ( row . CCharacterVarying ) ;
655656 await writer . WriteAsync ( row . CBpchar ) ;
656657 await writer . WriteAsync ( row . CText ) ;
658+ await writer . WriteAsync ( row . CUuid , NpgsqlDbType . Uuid ) ;
657659 await writer . WriteAsync ( row . CBytea ) ;
658660 }
659661
@@ -717,7 +719,7 @@ public class GetPostgresTypesRow
717719 return await this . Transaction . Connection . QueryFirstOrDefaultAsync < GetPostgresTypesRow ? > ( GetPostgresTypesSql , transaction : this . Transaction ) ;
718720 }
719721
720- private const string GetPostgresTypesCntSql = "SELECT c_smallint , c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_bytea, COUNT (* ) AS cnt FROM postgres_types GROUP BY c_smallint, c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_bytea LIMIT 1 " ;
722+ private const string GetPostgresTypesCntSql = "SELECT c_smallint , c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_uuid, c_bytea, COUNT (* ) AS cnt FROM postgres_types GROUP BY c_smallint, c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_uuid , c_bytea LIMIT 1 " ;
721723 public class GetPostgresTypesCntRow
722724 {
723725 public short ? CSmallint { get ; init ; }
@@ -738,6 +740,7 @@ public class GetPostgresTypesCntRow
738740 public string ? CCharacterVarying { get ; init ; }
739741 public string ? CBpchar { get ; init ; }
740742 public string ? CText { get ; init ; }
743+ public Guid ? CUuid { get ; init ; }
741744 public byte [ ] ? CBytea { get ; init ; }
742745 public required long Cnt { get ; init ; }
743746 } ;
0 commit comments