mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Call GetDateTimeValue for all temporal types on all server versions.
This commit is contained in:
@ -5794,7 +5794,7 @@ begin
|
||||
else begin
|
||||
if Datatype(i).Index in [dtNchar, dtNvarchar, dtNtext] then
|
||||
Val := 'N' + Connection.EscapeString(Cell.NewText)
|
||||
else if (Datatype(i).Index in [dtDate, dtDateTime]) and FConnection.Parameters.IsMSSQL then
|
||||
else if Datatype(i).Category = dtcTemporal then
|
||||
Val := Connection.EscapeString(Connection.GetDateTimeValue(Cell.NewText, Datatype(i).Index))
|
||||
else
|
||||
Val := Connection.EscapeString(Cell.NewText);
|
||||
|
Reference in New Issue
Block a user