aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2011-12-06Override second version of tracer::execute() to suppress Sun CC warning1.7.0Boris Kolpackov1-0/+9
2011-11-29Use biggest int type to avoid potential warningsBoris Kolpackov1-1/+1
2011-11-21Add support for common tests without ODB compilation for automake/VC projectsBoris Kolpackov3-5/+12
2011-11-21Exclude include test from distribution listBoris Kolpackov1-1/+1
2011-11-09Make sure we can use same type as both container and simple valueBoris Kolpackov2-1/+9
2011-11-08Add support for const version membersBoris Kolpackov1-1/+1
2011-11-08Add common/transaction test (port from tracer)Boris Kolpackov4-0/+227
2011-11-08Get rid of special tracer databaseBoris Kolpackov24-0/+838
The include, types, and pragma tests have been moved to the common/ directory while the object test has been merged into common/lifecycle. The transaction test will be re-implemented as common/ test as soon as SQL statement tracing support is merged.
2011-11-08Get rid of custom value_traits specialization in query testBoris Kolpackov7-263/+3
auto_ptr<string> is now handled automatically as a wrapper.
2011-11-03Use ODB_DATABASE_XXX macros instead DATABASE_XXX in ODB-compiled headers1.7.0.a1Boris Kolpackov2-14/+10
DATABASE_XXX macros are not defined when building from VC++ project.
2011-11-03Add support for mapping char[N] and unsigned char[N] types to BLOBBoris Kolpackov5-0/+236
New test: common/blob.
2011-11-02Add example for optimistic concurrency supportBoris Kolpackov1-1/+1
2011-11-02Add result_iterator::id() function that returns id without loading objectBoris Kolpackov2-0/+15
2011-11-02Prevent potential image overwrite in MySQL query resultBoris Kolpackov1-1/+6
2011-11-01Fix bug in view column parsingBoris Kolpackov1-13/+1
2011-11-01Implement support for optimistic concurrencyBoris Kolpackov5-0/+488
New pragmas: optimistic, version. New test: optimistic. New database function: reload().
2011-11-01Enable query test 14 for OracleConstantin Michael1-2/+0
2011-10-27Add support for persistent classes without object idsBoris Kolpackov5-0/+235
New pragma id (object). New test: common/no-id.
2011-10-27Dereference nullableBoris Kolpackov1-1/+1
2011-10-27Rename typedef type for clarityConstantin Michael2-4/+5
2011-10-27Temporarily exclude query test 14 from Oracle test suiteConstantin Michael1-13/+15
2011-10-27Simplify LOB column query testsConstantin Michael3-62/+67
2011-10-27Refactor pre-processor directives used to realize Oracle identifier quotingConstantin Michael1-7/+3
2011-10-27Revert to manually quoting Oracle identifiers where necessaryConstantin Michael3-24/+35
2011-10-26Shorten inheritance test table prefix to avoid name collisionsConstantin Michael1-1/+1
2011-10-26Remove temporary makefile overrides for OracleConstantin Michael1-16/+0
2011-10-26Add BLOB comparison and null predicate test cases to query testConstantin Michael3-53/+119
2011-10-26Temporarily disable query test 14Constantin Michael1-13/+13
2011-10-26Use CLOB instead of TEXT for Oracle query testConstantin Michael1-1/+5
2011-10-26Add Oracle traits implementation for query testConstantin Michael2-0/+62
2011-10-26Quote schema object identifiers for Oracle where necessaryConstantin Michael6-28/+161
Oracle converts all alphabetical characters in unquoted schema object identifiers to uppercase. This behaviour cannot be disabled.
2011-10-26Get rid of common_ prefix in query testBoris Kolpackov1-1/+1
2011-10-24Enable ON DELETE CASCADE-based checks for MySQLBoris Kolpackov1-6/+0
Now that we generate proper foreign keys for containers.
2011-10-24Add t_ prefix to all the common tests that conflict with examplesBoris Kolpackov8-20/+20
2011-10-21Add test_ prefix to view test since it conflicts with view exampleBoris Kolpackov3-15/+15
2011-10-21Shorten table prefixesBoris Kolpackov2-2/+2
2011-10-21Rename common/const test to common/const-objectBoris Kolpackov5-5/+5
2011-10-21Add support for const data membersBoris Kolpackov7-13/+451
Const data members are automatically treated as readonly. New test: const-member.
2011-10-21Add support for readonly membersBoris Kolpackov5-0/+504
New pragma: readonly. New test: readonly.
2011-10-21Remove common_ from all table_prefix arguments in common testsConstantin Michael27-56/+45
2011-10-21Improve temporary makefile layoutConstantin Michael1-24/+28
2011-10-21Add common tests for OracleConstantin Michael10-30/+50
Due to the 30 character limit imposed by Oracle on identifiers, some of the common tests code and/or makefiles had to be modified.
2011-10-02Handle object pointers when comparing view and object data member typesBoris Kolpackov2-5/+37
Also issues an error if an object member associated with a view member is transient or inverse.
2011-10-02If query substituting placeholder is empty, pass true expression insteadBoris Kolpackov2-3/+3
This allows uniform usage of views both with and without any extra conditions. Also optimize some common cases so that we don't have useless WHERE TRUE clauses or (...) AND (TRUE) expressions.
2011-09-27Add support for associating tables with viewsBoris Kolpackov2-7/+63
2011-09-22Remove NDEBUG macro from VC project; tests always need enabled assert()1.6.0.a2Boris Kolpackov2-4/+4
2011-09-21Use int instead of size_t for NULL-able valueBoris Kolpackov1-2/+2
In case of nullable<size_t> the ODB compiler is unable to determine that the wrapped type is size_t. This results in 64-bit integer being stored and 32-bit being loaded. This interacts badly with PG for some reason.
2011-09-21Rework const object handlingBoris Kolpackov2-14/+12
Now objects are always loaded as non-const and the object cache in session treats all objects as non-const.
2011-09-21Add prefix to table nameBoris Kolpackov1-1/+2
2011-09-20Change query syntax to use . for composite and -> for object pointer accessBoris Kolpackov8-20/+45
Also make non-inverse query columns act as both an object pointer and a normal column. The latter allows us to use natural expressions such as query<employee>::employer.is_null ().