Skip to content

Search IN(...) Clause doest not permit multiple values #16041

Closed

Description

@SjamonDaal

Describe the bug

Not sure but it seems to be the same issue as in #10105. (Which has been resolved in 2015)

To Reproduce

Steps to reproduce the behavior:

  1. Go to my database and select a table
  2. Click on Search
  3. In my Column "ID" I select the Operator "IN(...)"
  4. In my Column "ID" I enter the value "1,2,3"
  5. And the error shows "Please enter a valid number."

Expected behavior

No error, hit search and get the result.

Screenshots

Screenshot 2020-03-25 at 10 53 41

Server configuration

  • Operating system: Ubuntu 18.04
  • Web server: Apache2
  • Database version: 5.7.29
  • PHP version: 7.4.4
  • phpMyAdmin version: 5.0.2

Client configuration

  • Browser: Google Chrome
  • Operating system: MacOS

Additional context

n/a

Activity

  1. williamdes commented on Mar 25, 2020

    @williamdes
    Member

    Thank you for the report, a recent change introduced it..

  2. added
    Bug
    on Mar 25, 2020
  3. added this to the 5.0.3 milestone on Mar 25, 2020
  4. ankush-0x90 commented on Apr 10, 2020

    @ankush-0x90
    Contributor

    I am pretty sure that this e92e51d commit introduced it.

    Moreover I noticed

    var fieldsValue = $('select#fieldID_' + searchIndex);

    This select#filedID_ doesn't exists

    I changed select#fieldID_ to input#fieldID_ because we have to check existence of that input
    (please correct me if i am wrong)

    My thoughts on solutions:

    • For verifyAfterSearchFieldChange we can change INT datatype to some other datatyp for multiple values if we have (we can do this in changeValueFieldType
      or
    • In verifyAfterSearchFieldChange we can bypass/add new verification for inputs having multiple prop
  5. williamdes commented on Apr 10, 2020

    @williamdes
    Member

    In verifyAfterSearchFieldChange we can bypass/add new verification for inputs having multiple prop

    Seems to be the best solution

  6. ankush-0x90 commented on Apr 13, 2020

    @ankush-0x90
    Contributor

    Hi @williamdes,

    I have fixed the issue but need a code review whenever you will get time (I haven't sent PR).

    ankush-0x90@c2d4dba

    the branch name is 'fix_multiple_not_working`

    • i have added one validator method for validating Multiple Int with regex (don't know where to put it)
    • also There was a problem with min and max attribute of that input#filedID_

    I don't know if this is the optimised solution

  7. williamdes commented on Apr 13, 2020

    @williamdes
    Member

    Hi @asprazz

    The mentioned commit seems interesting but some of the fix could be done on the back-end side
    Also be sure to use QA_5_0 branch as base to make the fix

  8. ankush-0x90 commented on Apr 13, 2020

    @ankush-0x90
    Contributor

    Yeah I am targeting QA5_0

    I am little bit confused
    Please, guide me through this.

    Edit: QA_5_0

  9. williamdes commented on Apr 13, 2020

    @williamdes
    Member

    @asprazz I think #15942 can help you manage any GIT issues
    For the fix just create a branch from the latest upstream QA_5_0 and commit your fix to open a pull-request

    Does that seem okay ?

  10. ankush-0x90 commented on Apr 14, 2020

    @ankush-0x90
    Contributor

    @asprazz I think #15942 can help you manage any GIT issues
    For the fix just create a branch from the latest upstream QA_5_0 and commit your fix to open a pull-request

    Does that seem okay ?

    That was helpful

    But I was talking about backend changes, I am confused about it.

  11. williamdes commented on Apr 14, 2020

    @williamdes
    Member

    @asprazz I think #15942 can help you manage any GIT issues
    For the fix just create a branch from the latest upstream QA_5_0 and commit your fix to open a pull-request
    Does that seem okay ?

    That was helpful

    But I was talking about backend changes, I am confused about it.

    Maybe you can open a pull-request so se we can discuss about potential changes :)

  12. added
    has-pr
    on Apr 14, 2020
  13. added 2 commits that reference this issue on Apr 18, 2020
    0d7a227
    51f4795
  14. locked as resolved and limited conversation to collaborators on Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bughas-pr

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions