summaryrefslogtreecommitdiff
path: root/test/sql/quote.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-211/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* - added some help for a heavily flush-order-dependent testMike Bayer2008-05-161-1/+24
| | | | - quote flag propagates to _Label, [ticket:1045]
* Don't blat Table.quote= when resolving foreign keys.Jason Kirtland2008-05-151-0/+15
|
* - Removed @unsupportedJason Kirtland2008-05-141-11/+12
|
* Test suite modernization in progress. Big changes:Jason Kirtland2008-05-091-1/+2
| | | | | | | | | | | - @unsupported now only accepts a single target and demands a reason for not running the test. - @exclude also demands an exclusion reason - Greatly expanded @testing.requires.<feature>, eliminating many decorators in the suite and signficantly easing integration of multi-driver support. - New ORM test base class, and a featureful base for mapped tests - Usage of 'global' for shared setup going away, * imports as well
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-4/+23
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-2/+2
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-22/+22
| | | | | | - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
* `from foo import (name, name)` isn't valid syntax for 2.3. ah well.Jason Kirtland2007-08-211-1/+2
| | | | omitting modules from sqlalchemy.__all__...
* 1. Module layout. sql.py and related move into a package called "sql".Mike Bayer2007-08-181-4/+4
| | | | | | | | | | | | 2. compiler names changed to be less verbose, unused classes removed. 3. Methods on Dialect which return compilers, schema generators, identifier preparers have changed to direct class references, typically on the Dialect class itself or optionally as attributes on an individual Dialect instance if conditional behavior is needed. This takes away the need for Dialect subclasses to know how to instantiate these objects, and also reduces method overhead by one call for each one. 4. as a result of 3., some internal signatures have changed for things like compiler() (now statement_compiler()), preparer(), etc., mostly in that the dialect needs to be passed explicitly as the first argument (since they are just class references now). The compiler() method on Engine and Connection is now also named statement_compiler(), but as before does not take the dialect as an argument. 5. changed _process_row function on RowProxy to be a class reference, cuts out 50K method calls from insertspeed.py
* mass has_key->__contains__ migration, [ticket:738]Mike Bayer2007-08-151-1/+1
|
* - case_sensitive=(True|False) setting removed from schema items, sinceMike Bayer2007-08-111-43/+0
| | | | | | | checking this state added a lot of method call overhead and there was no decent reason to ever set it to False. Table and column names which are all lower case will be treated as case-insenstive (yes we adjust for Oracle's UPPERCASE style too).
* - oracle reflection of case-sensitive names all fixed upMike Bayer2007-08-101-1/+3
| | | | - other unit tests corrected for oracle
* Added 'unformat_identifiers', produces a list of unquoted identifiers from ↵Jason Kirtland2007-08-091-0/+50
| | | | an identifier or a fully qualified identifier string.
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-2/+3
| | | | maintenance branch in branches/rel_0_3.
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-061-3/+3
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* - fix to case() construct to propigate the type of the firstMike Bayer2007-04-241-2/+3
| | | | | WHEN condition as the return type of the case statement - various unit test tweaks to get oracle working
* - added literal_column() to specify a column clause that should not undergo ↵Mike Bayer2007-02-041-3/+2
| | | | | | | any quoting - straight text sent to select() added as literal_column - fix for issue in [ticket:450]
* - more quoting fixes for [ticket:450]...quoting more aggressive (but still ↵Mike Bayer2007-02-041-0/+6
| | | | | | | | skips already-quoted literals) - got mysql to have "format" as default paramstyle even if mysql module not available, allows unit tests to pass in non-mysql system for [ticket:457]. all the dialects should be changed to pass in their usual paramstyle.
* fixes to quoting on "fake" column when used off its tableMike Bayer2007-01-291-0/+4
|
* merged the polymorphic relationship refactoring branch in. i want to go ↵Mike Bayer2007-01-281-0/+7
| | | | | | | | | | | | | further on that branch and introduce the foreign_keys argument, and further centralize the "intelligence" about the joins and selectables into PropertyLoader so that lazyloader/sync can be simplified, but the current branch goes pretty far. - relations keep track of "polymorphic_primaryjoin", "polymorphic_secondaryjoin" which it derives from the plain primaryjoin/secondaryjoin. - lazy/eagerloaders work from those polymorphic join objects. - the join exported by PropertyLoader to Query/SelectResults is the polymorphic join, so that join_to/etc work properly. - Query builds itself against the base Mapper again, not the "polymorphic" mapper. uses the "polymorphic" version only as appropriate. this helps join_by/join_to/etc to work with polymorphic mappers. - Query will also adapt incoming WHERE criterion to the polymorphic mapper, i.e. the "people" table becomes the "person_join" automatically. - quoting has been modified since labels made out of non-case-sensitive columns could themselves require quoting..so case_sensitive defaults to True if not otherwise specified (used to be based on the identifier itself). - the test harness gets an ORMTest base class and a bunch of the ORM unit tests are using it now, decreases a lot of redundancy.
* further fixes to case sensitive logicMike Bayer2006-09-041-0/+29
|
* simplification to quoting to just cache strings per-dialect, added quoting ↵Mike Bayer2006-09-041-0/+12
| | | | | | for alias and label names fixes [ticket:294]
* pg formats sequence name, more quote test fixesMike Bayer2006-08-311-2/+2
|
* some tweaks to oracle casing...Mike Bayer2006-08-311-17/+17
|
* - added case_sensitive argument to MetaData, Table, Column, determinesMike Bayer2006-08-311-7/+18
| | | | | | | | | | | | itself automatically based on if a parent schemaitem has a non-None setting for the flag, or if not, then whether the identifier name is all lower case or not. when set to True, quoting is applied to identifiers with mixed or uppercase identifiers. quoting is also applied automatically in all cases to identifiers that are known to be reserved words or contain other non-standard characters. various database dialects can override all of this behavior, but currently they are all using the default behavior. tested with postgres, mysql, sqlite. needs more testing with firebird, oracle, ms-sql. part of the ongoing work with [ticket:155]
* quoting facilities set up so that database-specific quoting can beMike Bayer2006-08-121-0/+72
turned on for individual table, schema, and column identifiers when used in all queries/creates/drops. Enabled via "quote=True" in Table or Column, as well as "quote_schema=True" in Table. Thanks to Aaron Spike for his excellent efforts. [ticket:155]