Author: phd
Date: 2006-09-04 09:15:00 -0600 (Mon, 04 Sep 2006)
New Revision: 1898
Modified:
SQLObject/docs/News.txt
SQLObject/docs/SQLObject.txt
Log:
Updated docs: removed duplicate description of the unicode fix, added a .byName() example.
Modified: SQLObject/docs/News.txt
===================================================================
--- SQLObject/docs/News.txt 2006-09-04 15:01:36 UTC (rev 1897)
+++ SQLObject/docs/News.txt 2006-09-04 15:15:00 UTC (rev 1898)
@@ -111,23 +111,10 @@
* Fixed a longstanding problem with UnicodeCol - at last you can use unicode
strings in .select() and .selectBy() queries. There are some limitations,
- though:
+ though; see the description of the UnicodeCol_.
- - only simple q-magic fields are supported; no expressions;
- - only == and <> operators are supported;
+.. _UnicodeCol: SQLObject.html#column-types
- The following code works::
-
- MyTable.select(u'value' == MyTable.q.name)
- MyTable.select(MyTable.q.name <> u'value')
- MyTable.select(OR(MyTable.q.col1 == u'value1', MyTable.q.col2 <> u'value2'))
- MyTable.selectBy(name = u'value')
- MyTable.selectBy(col1=u'value1', col2=u'value2')
-
- The following still does not work::
-
- MyTable.select((MyTable.q.name + MyTable.q.surname) == u'value')
-
* Cull patch (clear cache).
* .destroySelf() inside a transaction.
Modified: SQLObject/docs/SQLObject.txt
===================================================================
--- SQLObject/docs/SQLObject.txt 2006-09-04 15:01:36 UTC (rev 1897)
+++ SQLObject/docs/SQLObject.txt 2006-09-04 15:15:00 UTC (rev 1898)
@@ -1140,6 +1140,7 @@
MyTable.select(OR(MyTable.q.col1 == u'value1', MyTable.q.col2 <> u'value2'))
MyTable.selectBy(name = u'value')
MyTable.selectBy(col1=u'value1', col2=u'value2')
+ MyTable.byCol1(u'value1') # if col1 is an alternateID
The following does not work::
|