diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-25 11:02:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-25 11:02:20 +0200 |
commit | 6f612aac43ae32e75d05717922c0f7f0c4ab0007 (patch) | |
tree | 2b250ac3269a52927677cb37e70fc13ba2516bd0 | |
parent | aaf47c94726ed05ca8c6790f0946e341125e7eb4 (diff) |
Add experimental code (commented out) for DELETE JOIN support
This would be needed to support object relationships in the erase_query()
functionality.
-rw-r--r-- | odb/relational/source.hxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx index 14589ac..6546670 100644 --- a/odb/relational/source.hxx +++ b/odb/relational/source.hxx @@ -2181,7 +2181,17 @@ namespace relational // erase_query_clause // os << "const char* const " << traits << "::erase_query_clause =" << endl - << strlit ("DELETE FROM " + table + " ") << ";" + << strlit ("DELETE FROM " + table) << endl; + + // DELETE JOIN: + // + // MySQL: + // << strlit ("DELETE FROM " + table + " USING " + table) << endl; + // << strlit ("DELETE " + table + " FROM " + table) << endl; + // oj->write (); + // + + os << strlit (" ") << ";" << endl; // table_name |