[Kexi] branches/koffice/1.6/koffice/kexi/kexidb
SVN commit 759457 by staniek: KexiDB fix the bug #146818: handling expressions containing binary operators like *, /, -, + where both arguments are of floating-point type (with single or double precision). Previously the result was marked as boolean, now it is floating-point. CCMAIL:[EMAIL PROTECTED] CCMAIL:kexi@kde.org M +2 -6 expression.cpp --- branches/koffice/1.6/koffice/kexi/kexidb/expression.cpp #759456:759457 @@ -400,14 +400,10 @@ if (ltInt rtInt) return KexiDB::maximumForIntegerTypes(lt, rt); - if (Field::isFPNumericType(lt) rtInt) + if (Field::isFPNumericType(lt) (rtInt || lt==rt)) return lt; - if (Field::isFPNumericType(rt) ltInt) + if (Field::isFPNumericType(rt) (ltInt || lt==rt)) return rt; - if ((lt==Field::Double || lt==Field::Float) rtInt) - return lt; - if ((rt==Field::Double || rt==Field::Float) ltInt) - return rt; return Field::Boolean; } ___ Kexi mailing list Kexi@kde.org https://mail.kde.org/mailman/listinfo/kexi
[Kexi] branches/koffice/1.6/koffice/kexi
SVN commit 599352 by staniek: * Kexi Query Designer supports parameter queries * Query Designer - New: Added support for parameter queries in design and SQL view. User is asked for entering value of a parameter in a dialog window. Paramers can be of any type except Object. CCMAIL:[EMAIL PROTECTED] CCMAIL:kexi@kde.org M +3 -3 kexidb/Makefile.am M +56 -38kexidb/connection.cpp M +45 -17kexidb/connection.h M +20 -1 kexidb/cursor.cpp M +8 -0 kexidb/cursor.h M +1 -0 kexidb/drivers/mySQL/mysqlcursor.cpp M +0 -2 kexidb/drivers/sqlite/sqlitecursor.cpp M +2 -1 kexidb/drivers/sqlite/sqlitecursor.h M +139 -265 kexidb/expression.cpp M +70 -87kexidb/expression.h M +1 -2 kexidb/field.cpp AMkexidb/fieldvalidator.cpp [License: LGPL (v2+)] AMkexidb/fieldvalidator.h [License: LGPL (v2+)] M +2 -0 kexidb/kexidb.pro M +942 -1290 kexidb/parser/sqlparser.cpp M +66 -78kexidb/parser/sqlparser.h M +66 -65kexidb/parser/sqlparser.y M +259 -282 kexidb/parser/sqlscanner.cpp M +15 -10kexidb/parser/sqlscanner.l M +23 -0 kexidb/parser/sqltypes.h M +8 -0 kexidb/queryschema.cpp M +10 -4 kexidb/queryschema.h AMkexidb/queryschemaparameter.cpp [License: LGPL (v2+)] AMkexidb/queryschemaparameter.h [License: LGPL (v2+)] M +21 -1 kexidb/utils.cpp M +20 -12kexidb/utils.h M +9 -5 plugins/queries/kexiquerydesignerguieditor.cpp M +3 -2 plugins/queries/kexiquerydesignersql.cpp M +21 -9 plugins/queries/kexiqueryview.cpp M +5 -1 plugins/queries/kexiqueryview.h M +1 -1 widget/Makefile.am AMwidget/kexiqueryparameters.cpp [License: LGPL (v2+) (wrong address)] AMwidget/kexiqueryparameters.h [License: LGPL (v2+) (wrong address)] ___ Kexi mailing list Kexi@kde.org https://mail.kde.org/mailman/listinfo/kexi