[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7237 - in trunk/gnue-common/src/datasources/drivers: interbase/i
From: |
reinhard |
Subject: |
[gnue] r7237 - in trunk/gnue-common/src/datasources/drivers: interbase/interbase oracle/Base postgresql/Base |
Date: |
Sun, 20 Mar 2005 18:12:47 -0600 (CST) |
Author: reinhard
Date: 2005-03-20 18:12:46 -0600 (Sun, 20 Mar 2005)
New Revision: 7237
Modified:
trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
Log:
Removed _dateTimeFormat from Connection objects, it's only used in DataSource
objects.
Modified:
trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
2005-03-21 00:09:16 UTC (rev 7236)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
2005-03-21 00:12:46 UTC (rev 7237)
@@ -57,12 +57,7 @@
supportedDataObjects = {'object': DataObject.DataObject_Object,
'sql': DataObject.DataObject_SQL}
- # TODO: Can be removed once everything is switched to parameters
- # The date/time format used in insert/select statements
- # (based on format used for time.strftime())
- _dateTimeFormat = "cast('%Y-%m-%d %H:%M:%S' as timestamp)"
-
# ---------------------------------------------------------------------------
# Constructor
# ---------------------------------------------------------------------------
Modified: trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
2005-03-21 00:09:16 UTC (rev 7236)
+++ trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
2005-03-21 00:12:46 UTC (rev 7237)
@@ -44,9 +44,7 @@
supportedDataObjects = {'object': DataObject.DataObject_Object,
'sql': DataObject.DataObject_SQL}
- _dateTimeFormat = "'%Y-%m-%d %H:%M:%S'"
-
# ---------------------------------------------------------------------------
# Constructor
# ---------------------------------------------------------------------------
@@ -58,10 +56,7 @@
if parameters.has_key ('oracle_home'):
os.environ ['ORACLE_HOME'] = parameters ['oracle_home']
- if parameters.has_key ('datetimeformat'):
- self._dateTimeFormat = "'%s'" % connectData ['datetimeformat']
-
# ---------------------------------------------------------------------------
# Get connection parameters
# ---------------------------------------------------------------------------
Modified:
trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
2005-03-21 00:09:16 UTC (rev 7236)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
2005-03-21 00:12:46 UTC (rev 7237)
@@ -64,12 +64,7 @@
gDebug (1, "Encoding '%s' is not supported by postgresql dbdriver. "
"Using default encoding." % self._encoding)
- # TODO: can be removed if everything is switched to parameters
- dtfmt = parameters.get ('datetimeformat', "%Y-%m-%d %H:%M:%S")
- self._dateTimeFormat = "'%s'" % dtfmt
- gDebug (9, "datetime-format set to %s" % self._dateTimeFormat)
-
# ---------------------------------------------------------------------------
# Get connection parameters
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7237 - in trunk/gnue-common/src/datasources/drivers: interbase/interbase oracle/Base postgresql/Base,
reinhard <=