Skip to content
Browse files

Detect MS SQL data type DATETIMEOFFSET as such, not as UNKNOWN. Closes

…#496 and closes #98
  • Loading branch information...
ansgarbecker committed Apr 22, 2019
1 parent 5c2263b commit 591507cf1577e856993354c6341d10c3991ea38c
Showing with 14 additions and 2 deletions.
  1. +14 −2 source/mysql_structures.pas
@@ -248,7 +248,7 @@ MYSQL_RES = record
// MySQL data types
TDBDatatypeIndex = (dtTinyint, dtSmallint, dtMediumint, dtInt, dtBigint, dtSerial, dtBigSerial,
dtFloat, dtDouble, dtDecimal, dtNumeric, dtReal, dtDoublePrecision, dtMoney, dtSmallmoney,
dtDate, dtTime, dtYear, dtDatetime, dtDatetime2, dtSmalldatetime, dtTimestamp, dtInterval,
dtDate, dtTime, dtYear, dtDatetime, dtDatetime2, dtDatetimeOffset, dtSmalldatetime, dtTimestamp, dtInterval,
dtChar, dtNchar, dtVarchar, dtNvarchar, dtTinytext, dtText, dtNtext, dtMediumtext, dtLongtext,
dtJson, dtCidr, dtInet, dtMacaddr,
dtBinary, dtVarbinary, dtTinyblob, dtBlob, dtMediumblob, dtLongblob, dtImage,
@@ -960,7 +960,7 @@ TServerVariable = record


MSSQLDatatypes: array [0..32] of TDBDatatype =
MSSQLDatatypes: array [0..33] of TDBDatatype =
Index: dtUnknown;
@@ -1151,6 +1151,18 @@ TServerVariable = record
Format: 'yyyy-mm-dd hh:nn:ss.zzzzzzz';
Category: dtcTemporal;
Index: dtDatetimeOffset;
Description: 'Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.';
HasLength: False;
RequiresLength: False;
HasBinary: False;
HasDefault: True;
LoadPart: False;
Format: 'yyyy-mm-dd hh:nn:ss.zzzzzzz';
Category: dtcTemporal;
Index: dtSmalldatetime;

0 comments on commit 591507c

Please sign in to comment.
You can’t perform that action at this time.