Skip to content
Permalink
Browse files

more fixes for datetime and timestamp for s_session.s_valid_until_d

  • Loading branch information...
tpokorra committed Aug 8, 2019
1 parent 95c16eb commit 0c724b22ff745fdb95f6b497ad26bc70f0427464
@@ -82,7 +82,7 @@ public static string ToOdbcTypeString(TTableField tableField)
{
return "OdbcType.Date";
}
else if (tableField.strType == "timestamp")
else if (tableField.strType == "timestamp" || tableField.strType == "datetime")
{
return "OdbcType.DateTime";
}
@@ -480,6 +480,12 @@ public static string WriteField(eDatabaseType ATargetDatabase, TTable ATable, TT
}
}

if ((field.strType == "datetime") && (ATargetDatabase == eDatabaseType.PostgreSQL))
{
// PostgreSQL does not have type datetime
field.strType = "timestamp";
}

if ((field.strType == "varchar") && (field.iLength >= 10000))
{
field.strType = "text";
@@ -335,7 +335,7 @@
notnull="yes"/>
<tablefield name="s_valid_until_d"
type="datetime"
descr="This is session is valid till this point in time"
descr="This session is valid till this point in time"
notnull="yes"/>
<tablefield name="s_session_values_c"
type="text"

0 comments on commit 0c724b2

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