Issue 32715 - "<>" filter doesn't work
Summary: "<>" filter doesn't work
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-08 00:26 UTC by mroe
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
MySQL script to generate a sample table (488 bytes, text/plain)
2004-08-09 15:29 UTC, Frank Schönheit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mroe 2004-08-08 00:26:36 UTC
There is a form to access a MySQL database. If i create a filter rule
[field] [<>] ['A']
i get an empty answer. If i recall the filter form, now the filter rule is
[field] [=] ['<> A']
so there can't be a valid result.
Comment 1 Frank Schönheit 2004-08-09 14:38:20 UTC
correcting priority according to
http://www.openoffice.org/scdocs/ddIssues_EnterModify.html#priority - sorry, but
this is *no* P1
Comment 2 Frank Schönheit 2004-08-09 14:41:00 UTC
Mathias, sorry, but I cannot reproduce it:
- MySQL data source, therein a table with a text field, and a form for this table
- open the form
- enter the "form based filter"
- enter "<> 'AAA'" in the control bound to the text field
- apply the filter
- re-enter the "form based filter"
=> "<> 'AAA'" is shown in the text field, as expected. Also, the filtered form
showed the results as expected.

Do you mind describing in more detail what you did, as well as more about your
environment (table structure and the like). Please also consider reading
http://qa.openoffice.org/issue_handling/bug_writing_guidelines.html :)
Comment 3 mroe 2004-08-09 15:13:58 UTC
Sorry for the incomplete description. I mean the filter in the database beamer.
The field contains only a character (or not) (declared as string with length 1
in the table). For me (or better for the user, who can't create the wanted
filter rules) it is P1. MySQL and SO7 runs on a (the same) W2k machine.
Comment 4 Frank Schönheit 2004-08-09 15:26:21 UTC
> For me (or better for the user, who can't create the wanted filter rules) it is
> P1.

I understand this, but with this attitude nearly everything is a P1, since every
bug is serious to somebody. You'd certainly agree that this would render the
priority system useless.

In the data source browser, I could indeed reproduce this. I'm going to attach a
bug doc.
Comment 5 Frank Schönheit 2004-08-09 15:29:27 UTC
Created attachment 17014 [details]
MySQL script to generate a sample table
Comment 6 Frank Schönheit 2004-08-09 15:38:18 UTC
confirming, assigning, targeting.

Steps to reproduce:
- with a MySQL database of your choice, import the attached i32715.sql to create
a sample table. Alternatively, simply create a table with some text field manually.
- create a MySQL/ODBC data source for this database
- display the table "i32715" in the data source browser
- press the "Default filter ..." button
=> the filter dialog pops up
- ensure that in the first line of the dialog, "Field" is set to "txt",
"Condition" to "<>", and "Value" to "'A'"
- close the dialog with OK
=> the table is properly filtered
- re-open the dialog
=> in the first line, "Condition" is now "=", and "Value" is "<> 'A'", which
obviously is not what you intended ...

Tried this in 1.1.2, as well as in 680m49 non-product - reproducible in both
versions.

In a non-product version, there's also an assertion saying "Wrong node type"
from dbaccess/source/core/api/SingleSelectQueryComposer.cxx, line 822.

fs->oj: seems that OSingleSelectQueryComposer::getPredicateType should also care
for SQL_NODE_NOTEQUAL ....
Comment 7 ocke.janssen 2004-08-16 14:13:46 UTC
.
Comment 8 ocke.janssen 2004-10-13 09:01:22 UTC
Reopen for QA
Comment 9 ocke.janssen 2004-10-13 09:01:40 UTC
Please verify. Thanks.
Comment 10 ocke.janssen 2004-10-13 09:01:57 UTC
Set to fix again
Comment 11 mroe 2004-10-13 12:34:11 UTC
Thanks. (Sorry, cannot verify at the moment.)
Comment 12 marc.neumann 2004-10-20 08:46:06 UTC
Hi,

verified in cws dba16.

Bye Marc
Comment 13 marc.neumann 2004-11-30 08:54:13 UTC
Hi,

fixed in current developer build -> close.
The current developer build can be found at
http://download.openoffice.org/680/index.html
Feel free to reopen if this issue is not fixed in the developer build.

Bye Marc