]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix driver imports
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Jul 2009 18:48:10 +0000 (18:48 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Jul 2009 18:48:10 +0000 (18:48 +0000)
- update info on special schema names in unittest README

README.unittests
lib/sqlalchemy/dialects/mssql/__init__.py
lib/sqlalchemy/dialects/mssql/pymssql.py
lib/sqlalchemy/dialects/mysql/__init__.py
lib/sqlalchemy/dialects/postgresql/__init__.py

index ca16788d9b8bd9d862f0a4f0912e86668613086e..89a8f39e4d1d022587172dced597c2032a8db78b 100644 (file)
@@ -78,9 +78,12 @@ another database, use the --dburi option with any standard SQLAlchemy URL:
 
     --dburi=postgresql://user:password@localhost/test
 
-Use an empty database and a database user with general DBA privileges.  The
-test suite will be creating and dropping many tables and other DDL, and
-preexisting tables will interfere with the tests
+Use an empty database and a database user with general DBA privileges.  
+The test suite will be creating and dropping many tables and other DDL, and
+preexisting tables will interfere with the tests.
+
+IMPORTANT !: please see TIPS at the end if your are testing on POSTGRESQL,
+ORACLE, or MSSQL - additional steps are required to prepare a test database.
 
 If you'll be running the tests frequently, database aliases can save a lot of
 typing.  The --dbs option lists the built-in aliases and their matching URLs:
@@ -168,13 +171,23 @@ IRC!
 
 TIPS
 ----
-PostgreSQL: The tests require an 'alt_schema' and 'alt_schema_2' to be present in
+
+PostgreSQL: The tests require an 'test_schema' and 'test_schema_2' to be present in
 the testing database.
 
-PostgreSQL: When running the tests on postgresql, postgresql can get slower and
-slower each time you run the tests.  This seems to be related to the constant
-creation/dropping of tables.  Running a "VACUUM FULL" on the database will
-speed it up again.
+Oracle: the database owner should be named "scott" (this will be fixed),
+and an additional "owner" named "ed" is required:
+
+1. create a user 'ed' in the oracle database.
+2. in 'ed', issue the following statements:
+    create table parent(id integer primary key, data varchar2(50));
+    create table child(id integer primary key, data varchar2(50), parent_id integer references parent(id));
+    create synonym ptable for parent;
+    create synonym ctable for child;
+    grant all on parent to scott;  (or to whoever you run the oracle tests as)
+    grant all on child to scott;  (same)
+    grant all on ptable to scott;
+    grant all on ctable to scott;
 
 MSSQL: Tests that involve multiple connections require Snapshot Isolation
 ability implented on the test database in order to prevent deadlocks that will
index a5fabbade17a29be8b5ec6bff38061ea9aa07c87..e3a829047c43fe56900621fccb451947eec7b2e3 100644 (file)
@@ -1,3 +1,3 @@
-from sqlalchemy.dialects.mssql import base, pyodbc
+from sqlalchemy.dialects.mssql import base, pyodbc, adodbapi, pymssql
 
 base.dialect = pyodbc.dialect
\ No newline at end of file
index 475cc398af26a4bc75932b42af372c291eb817a0..0961c2e760d365f02d5fae38448aabb1db1f2fec 100644 (file)
@@ -1,4 +1,4 @@
-from sqlalchemy.dialects.mssql.base import MSDialect, MSDateTimeAsDate, MSDateTimeAsTime
+from sqlalchemy.dialects.mssql.base import MSDialect
 from sqlalchemy import types as sqltypes
 
 
index e94acc64e34041641c3c87ccf5261892c9913bd2..4106a299bef390458b87761ef71c9f711805a832 100644 (file)
@@ -1,4 +1,4 @@
-from sqlalchemy.dialects.mysql import base, mysqldb
+from sqlalchemy.dialects.mysql import base, mysqldb, pyodbc, zxjdbc
 
 # default dialect
 base.dialect = mysqldb.dialect
\ No newline at end of file
index 77eca4aee58148cdb7fa971d0391530848ae331f..af9430a2b0dd45a473934e8b062e808ffbafab38 100644 (file)
@@ -1,3 +1,3 @@
-from sqlalchemy.dialects.postgresql import base, psycopg2
+from sqlalchemy.dialects.postgresql import base, psycopg2, pg8000, zxjdbc
 
 base.dialect = psycopg2.dialect
\ No newline at end of file