summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-09-24 06:26:55 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-09-24 06:26:55 +0000
commit51317336549fc185304ec0525ffd546b78e48ad3 (patch)
treeb6d6b547d94afeef9caa99ee20ee935ffd8e76e6 /lib/sqlalchemy
parent0f33e21e094a15847c7d659da619dd550e7d0551 (diff)
downloadsqlalchemy-51317336549fc185304ec0525ffd546b78e48ad3.tar.gz
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/databases/sqlite.py6
-rw-r--r--lib/sqlalchemy/types.py12
2 files changed, 8 insertions, 10 deletions
diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py
index 24494d8a0..62443771f 100644
--- a/lib/sqlalchemy/databases/sqlite.py
+++ b/lib/sqlalchemy/databases/sqlite.py
@@ -96,10 +96,8 @@ class SQLiteSQLEngine(ansisql.ANSISQLEngine):
def connect_args(self):
return ([self.filename], self.opts)
- def compile(self, statement, bindparams):
- compiler = SQLiteCompiler(self, statement, bindparams)
- statement.accept_visitor(compiler)
- return compiler
+ def compiler(self, statement, bindparams):
+ return SQLiteCompiler(self, statement, bindparams)
def dbapi(self):
return sqlite
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index 3b9f3cee8..ac4310c4e 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -53,7 +53,7 @@ class NullTypeEngine(TypeEngine):
def convert_result_value(self, value):
return value
-class String(TypeEngine):
+class String(NullTypeEngine):
def __init__(self, length = None):
self.length = length
def adapt(self, typeobj):
@@ -64,24 +64,24 @@ class String(TypeEngine):
else:
return self
-class Integer(TypeEngine):
+class Integer(NullTypeEngine):
"""integer datatype"""
pass
-class Numeric(TypeEngine):
+class Numeric(NullTypeEngine):
def __init__(self, precision = 10, length = 2):
self.precision = precision
self.length = length
def adapt(self, typeobj):
return typeobj(self.precision, self.length)
-class DateTime(TypeEngine):
+class DateTime(NullTypeEngine):
pass
-class Binary(TypeEngine):
+class Binary(NullTypeEngine):
pass
-class Boolean(TypeEngine):
+class Boolean(NullTypeEngine):
pass
class FLOAT(Numeric):pass