[pypy-commit] pypy default: (nekto0n) add cx_Oracle.paramstyle
amauryfa
noreply at buildbot.pypy.org
Thu Jun 2 21:48:32 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r44654:63e1c743a307
Date: 2011-06-02 17:26 +0200
http://bitbucket.org/pypy/pypy/changeset/63e1c743a307/
Log: (nekto0n) add cx_Oracle.paramstyle
diff --git a/pypy/module/oracle/__init__.py b/pypy/module/oracle/__init__.py
--- a/pypy/module/oracle/__init__.py
+++ b/pypy/module/oracle/__init__.py
@@ -28,6 +28,7 @@
appleveldefs = {
'version': 'app_oracle.version',
+ 'paramstyle': 'app_oracle.paramstyle',
'makedsn': 'app_oracle.makedsn',
'TimestampFromTicks': 'app_oracle.TimestampFromTicks',
}
diff --git a/pypy/module/oracle/app_oracle.py b/pypy/module/oracle/app_oracle.py
--- a/pypy/module/oracle/app_oracle.py
+++ b/pypy/module/oracle/app_oracle.py
@@ -1,4 +1,5 @@
version = '5.0.0'
+paramstyle = 'named'
class Warning(StandardError):
pass
diff --git a/pypy/module/oracle/test/test_connect.py b/pypy/module/oracle/test/test_connect.py
--- a/pypy/module/oracle/test/test_connect.py
+++ b/pypy/module/oracle/test/test_connect.py
@@ -41,6 +41,10 @@
if hasattr(self, 'cnx'):
self.cnx.close()
+ def test_constants(self):
+ assert '.' in oracle.version
+ assert oracle.paramstyle == 'named'
+
def test_connect(self):
self.cnx = oracle.connect(self.username, self.password,
self.tnsentry, threaded=True)
More information about the pypy-commit
mailing list