Skip to content
Permalink
Browse files

Merge pull request #371 from tpokorra/TP-201907-morefixesSessions

Tp 201907 morefixes sessions
  • Loading branch information...
tpokorra committed Aug 8, 2019
2 parents aa8a73b + 0c724b2 commit fb8cfd75b6d77946e5ca78ebff77532475fa7f0c
@@ -456,7 +456,7 @@ useful parameters
<target name="checkHtml">
<loadtasks assembly="${Ict.Tools.NAntTasks.DLL}" unless="${task::exists('ExecDotNet')}"/>
<ExecDotNet program="${dir.bin}/Ict.Tools.CheckHtml.exe"
commandline="-formsdir:../openpetra-client-js/src/forms/"/>
commandline="-formsdir:js-client/src/forms/"/>
</target>

<target name="checkCode">
@@ -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";
@@ -4,7 +4,7 @@
// @Authors:
// christiank, timop
//
// Copyright 2004-2014 by OM International
// Copyright 2004-2019 by OM International
//
// This file is part of OpenPetra.org.
//
@@ -296,7 +296,7 @@ public void EndSession()
if (HttpContext.Current != null)
{
TLogging.Log("EndSession (for client '" + this.ClientName + "'): Clearing Session");
TSession.Clear();
TSession.CloseSession();
}

FClientDisconnectionFinishedTime = DateTime.Now;

0 comments on commit fb8cfd7

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