summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
diff options
context:
space:
mode:
authorDaNiMoTh <jjdanimoth@gmail.com>2011-07-19 14:57:07 +1000
committerCharles Yin <charles.yin@nokia.com>2011-07-19 14:57:07 +1000
commitc4280dbd9bb37cca21d007f5f8b9217f80b44043 (patch)
treeca35cfc7b1dde96027df56afa5d157ad540f7d0a /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
parent2b13b3d367cb6cda48ab9183d9ad5b2eee09e129 (diff)
downloadqt4-tools-c4280dbd9bb37cca21d007f5f8b9217f80b44043.tar.gz
Fixed behavior on NULL foreign keys
Instead of using a simple INNER JOIN, like: SELECT a,b,rel.c FROM table1, table2 WHERE (table1.smthing = table2.smthing) which doesn't show row where foreign keys are NULL, allow use of LEFT JOIN like: SELECT a,b,rel.c FROM table1 LEFT JOIN table2 ON table1.smthing = table2.smthing The trick works also for multi-relational tables. Just remember to use the new API setJoinMode. Signed-off-by: DaNiMoTh <jjdanimoth@gmail.com> Change-Id: I349f9418e4859923977942add59872b000cac2c5 Task-number:QTBUG-8217 Reviewed-by:Michael Goddard Reviewed-by:Charles Yin Merge-request: 2576 Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions