I upgraded to 2.0.11.0 of Npgsql and I'm still getting timestamp instead of timestamptz in my queries.
Looking in my generated code, it all seems to think I want timestamp. But when I look in the LLBLGen Pro tool (Oct 9, 2009), the DB type column for AnalysisRecordTimstamp says timestamptz.
AnalysisRecordTimestamp | 29 | System.DateTime | analysis_record_timestamp | timestamptz | 0 | 0 | 0 | False | False | False | True | False
Various applicable bits of info:
From the Entity.cs file:
/// <summary> The AnalysisRecordTimestamp property of the Entity ReportEntry<br/><br/>
/// </summary>
/// <remarks>Mapped on table field: "report_entries"."analysis_record_timestamp"<br/>
/// Table field type characteristics (type, precision, scale, length): Timestamp, 0, 0, 0<br/>
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual Nullable<System.DateTime> AnalysisRecordTimestamp
{
get { return (Nullable<System.DateTime>)GetValue((int)ReportEntryFieldIndex.AnalysisRecordTimestamp, false); }
set { SetValue((int)ReportEntryFieldIndex.AnalysisRecordTimestamp, value); }
}
From FieldInfoProvider.cs
base.AddElementFieldInfo("ReportEntryEntity", "AnalysisRecordTimestamp", typeof(Nullable<System.DateTime>), false, false, false, true, (int)ReportEntryFieldIndex.AnalysisRecordTimestamp, 0, 0, 0);
From PersistenceInfoProvider.cs
base.AddElementFieldMapping( "ReportEntryEntity", "AnalysisRecordTimestamp", "analysis_record_timestamp", true, (int)NpgsqlDbType.Timestamp, 0, 0, 0, false, "", null, typeof(System.DateTime), 28 );