]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added unit test for exception formatting
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2009 01:00:46 +0000 (01:00 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2009 01:00:46 +0000 (01:00 +0000)
commitd6b9757778edea97bdbda5c98eb61b37d93296cc
tree62e328768bf514963eb40356edf45ec01d20c3b4
parent3837a29bfc082b8e718eba007456e3a025238c1d
- added unit test for exception formatting
- Deprecated the hardcoded TIMESTAMP function, which when
used as func.TIMESTAMP(value) would render "TIMESTAMP value".
This breaks on some platforms as Postgres doesn't allow
bind parameters to be used in this context.  The hard-coded
uppercase is also inappropriate and there's lots of other
PG casts that we'd need to support.  So instead, use
text constructs i.e. select(["timestamp '12/05/09'"]).
CHANGES
lib/sqlalchemy/databases/postgres.py
test/base/except.py
test/dialect/postgres.py