Issue107

Title implement IS TRUE, IS NOT TRUE, IS FALSE, IS NOT FALSE
Priority wish Status chatting
Superseder Nosy List johannesV, lekma, reinhard
Assigned To Topics gnue-common

Created on 2006-04-14.08:59:25 by lekma, last changed 2007-09-20.08:16:44 by johannesV.

Files
File name Uploaded Type Edit Remove
GConditions_true_false.diff lekma, 2006-04-14.08:59:25 text/x-patch
Messages
msg430 (view) Author: johannesV Date: 2007-09-20.08:16:43
After checking the patch we've found the following situation:
It works well on these backends: PostgreSQL 8.1, MySQL 5.0, MaxDB 7.5
It does *not* work on these backends: SQLite3, FireBird 1.5

The latter two database backends do not support statements like "foo IS TRUE". 
But since the GCondition does not know anything about the driver it is "working"
for, we cannot force it to generate 'other' SQL code then.  This would be
something to change when there are bigger changes planned in GNUe common.
msg153 (view) Author: reinhard Date: 2006-04-26.15:08:24
Johannes, can you please test if this patch works with all backends?

Thanks, Reinhard
msg147 (view) Author: lekma Date: 2006-04-14.08:59:25
the attached patch implements IS TRUE, IS NOT TRUE, IS FALSE, IS NOT FALSE sql
conditions. it simplifies the writing of complex conditions:
["true", ["field", "field_name"]]
instead of ["eq", ["field", "field_name"], ["const", True]]

needs review and needs testing for db different than postgresql.
History
Date User Action Args
2007-09-20 08:16:44johannesVsetnosy: reinhard, johannesV, lekma
messages: + msg430
2006-04-26 15:08:25reinhardsettopic: - gnue-appserver
status: unread -> chatting
messages: + msg153
nosy: + reinhard, johannesV
2006-04-14 08:59:25lekmacreate