From add08033023c93745f3f593c54478c58985c0e4a Mon Sep 17 00:00:00 2001 From: Rudolf Hangl Date: Thu, 10 Jan 2008 14:09:43 +0000 Subject: [PATCH] --- system/sync/stp/sync_stp_vilesci_prestudent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/sync/stp/sync_stp_vilesci_prestudent.php b/system/sync/stp/sync_stp_vilesci_prestudent.php index b612d552b..8d88fbcc8 100644 --- a/system/sync/stp/sync_stp_vilesci_prestudent.php +++ b/system/sync/stp/sync_stp_vilesci_prestudent.php @@ -19,9 +19,9 @@ require_once('sync_config.inc.php'); $starttime=time(); -if (!$conn_ext=mssql_connect (STPDB_SERVER, STPDB_USER, STPDB_PASSWD)) +/*if (!$conn_ext=mssql_connect (STPDB_SERVER, STPDB_USER, STPDB_PASSWD)) die('Fehler beim Verbindungsaufbau!'); -mssql_select_db(STPDB_DB, $conn_ext); +mssql_select_db(STPDB_DB, $conn_ext);*/ $conn=pg_connect(CONN_STRING) or die("Connection zur FH-Complete Datenbank fehlgeschlagen"); @@ -133,7 +133,7 @@ $qry="SELECT __Person, datenquelle, inAusmassBesch, HoechsteAusbildung, _cxZugan chKalenderSemStatAend, inStudiensemester, _cxStudStatus, _StgOrgForm FROM sync.stp_person JOIN sync.stp_stgvertiefung ON (_stgvertiefung=__stgvertiefung) JOIN public.tbl_studiengang ON (_studiengang=ext_id) - WHERE __Person IN (__person FROM sync.tbl_syncperson) AND + WHERE __Person IN (SELECT __person FROM sync.tbl_syncperson) AND (_cxPersonTyp='1' OR _cxPersonTyp='2');"; //WHERE __Person IN (SELECT ext_id FROM tbl_person WHERE ext_id IS NOT NULL) AND