summaryrefslogtreecommitdiff
path: root/odb/relational
AgeCommit message (Collapse)AuthorFilesLines
2012-07-27Handle special case of array of zero elementsBoris Kolpackov1-0/+7
2012-07-27Add support for defining indexesBoris Kolpackov9-82/+696
New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index.
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov8-156/+149
Conceptually, indexes belong to tables and some databases (MySQL, MSSQL) indeed treat them as such (i.e., you can have indexes with the same name in different tables).
2012-07-27Use cxx_lexer interface instead of pragma_lex() directlyBoris Kolpackov2-47/+51
This will allow us to use different kinds of cxx_lexer implementations in the future.
2012-07-25Simplify auto id implementation in OracleBoris Kolpackov6-101/+71
Specifically, instead of using a trigger to assign the next id from the sequence, get the next value directly in the INSERT statement.
2012-07-25Clean up PostgreSQL auto id implementationBoris Kolpackov2-6/+11
Specifically, avoid sending the auto id value.
2012-07-17Remove unnecessary instance<> usageBoris Kolpackov4-29/+29
2012-07-17Implement multi-pass table dropping for SQL ServerBoris Kolpackov2-14/+108
We have to first drop constraints before dropping tables in case the tables are dropped in a wrong order or there are circular dependencies.
2012-07-16Simplify query inheritance hierarchyBoris Kolpackov4-140/+16
This should also allow Sun CC handle queries for objects with circular dependencies.
2012-07-11Drop Oracle trigger and sequence only if we have auto primary keyBoris Kolpackov1-18/+38
2012-07-10Add support for custom database type mappingBoris Kolpackov28-320/+961
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-07-10Add missing newlineBoris Kolpackov1-1/+1
2012-06-29Cosmetic changesBoris Kolpackov2-2/+2
2012-06-29Fix error message to suggest more appropriate optionBoris Kolpackov1-1/+1
2012-04-30Rework polymorphic info and entry static variablesBoris Kolpackov2-19/+20
Make entry file-static. Move info further down in class definition. Make both const. This helps VC++.
2012-04-29Cosmetic changeBoris Kolpackov1-1/+1
2012-04-29Generate default constructors for classes used in static const membersBoris Kolpackov1-3/+7
2012-04-27Don't generate grow code for databases that don't need itBoris Kolpackov4-30/+75
2012-04-27Support for NULL value semantics for composite valuesBoris Kolpackov1-16/+45
2012-04-27Add support for NULL pointers to objects with composite object idsBoris Kolpackov10-25/+422
2012-04-26Make session optionalBoris Kolpackov3-27/+81
2012-04-25Fix auto id handling in polymorphic objectsBoris Kolpackov3-3/+12
2012-04-23Polymorphic inheritance supportBoris Kolpackov32-3510/+5690
2012-03-09Don't override NOT NULL on Oracle VARCHAR column if it's primary keyBoris Kolpackov1-4/+21
2012-03-07Use RAII to free select statement resultsBoris Kolpackov9-66/+65
2012-03-06Detect situations where session is required but not usedBoris Kolpackov1-0/+18
Throw session_required.
2012-03-05Add support for specifying object/view pointer on namespaceBoris Kolpackov1-10/+85
2012-03-05Add support for generating schema creation code into separate C++ fileBoris Kolpackov9-284/+430
2012-02-27Add support for specifying table prefix on namespaceBoris Kolpackov1-7/+18
2012-02-22Add support for composite object idsBoris Kolpackov37-3197/+2062
New pragma id_type (member). New test: common/composite-id. The composite example has also been updated.
2012-02-10Use correct truncation vector in container loading codeBoris Kolpackov1-2/+2
2012-01-29Update copyright yearBoris Kolpackov58-58/+58
2012-01-29Remove author field from file headerBoris Kolpackov58-58/+0
Too much effort to maintain.
2012-01-27Make container schema override object schemaBoris Kolpackov1-4/+9
2012-01-26Add clarifying commentsBoris Kolpackov1-1/+5
2012-01-26Implement support for database schemaBoris Kolpackov22-108/+273
New pragma qualifier: namespace. New pragma specifier: schema. The table specifier was extended to accept a schema prefix. New option: --default- schema. The common/schema test was extended to cover the new functionality.
2012-01-25Rename --default-schema to --schema-nameBoris Kolpackov1-1/+1
2012-01-22Pass precision and scale to Oracle query_paramBoris Kolpackov3-18/+105
2012-01-22Fix INTERVAL types parsingBoris Kolpackov1-8/+29
Assign default precisions, store seconds precision for INTERVAL DAY TO SECOND in scale since prec stores the days precisions.
2012-01-22Rename range to precision in Oracle generatorBoris Kolpackov4-59/+60
2012-01-22Fix bug in Oracle DECIMAL/NUMERIC type aliases parsingBoris Kolpackov1-18/+9
2012-01-22Change default Oracle std::string mapping to 512 from 4000Boris Kolpackov1-1/+1
2012-01-20Work around SQL Server 2005 bug with long data and OUTPUT clauseBoris Kolpackov2-3/+95
2012-01-20Remove unnecessary qualificationBoris Kolpackov1-1/+1
2012-01-20Add integers in ODB compiler instead of generated codeBoris Kolpackov1-2/+2
2012-01-20Change short data max and default string sizes for SQL ServerBoris Kolpackov1-1/+2
Now the default short data max is 1024, non-key string size is 512 characters, and key string size is 256 characters. Also add default mapping for std::wstring.
2012-01-20Customize generated pointer column wrapper ctorBoris Kolpackov3-6/+29
For SQL Server we need to be able to pass precision/scale.
2012-01-20Query support for SQL ServerBoris Kolpackov5-19/+90
2012-01-20Add missing static_castBoris Kolpackov1-4/+6
2012-01-20Add support for case where we don't send auto object id in INSERTBoris Kolpackov8-4/+18