Okay
  Public Ticket #2852941
No Results in Search
Closed

Comments

  • Michael Mierwinski started the conversation

    I have a new table I created using SQL back-end with a "select * [TableName]" query and there are no results coming back. The result set is about 2.2 million records.

    I found a number of articles stating that there are issues when using VIEWS or any special characters in the query, however mind is very basic and returns all records. 

    Please advise on what I can try.

  • Daniel replied

    Try adding

    SELECT * FROM (
        "select * from [TableName]"
    ) tmp

  • Michael Mierwinski replied

    That gives this error.  I tried every combination of the string, same error every time.

    6325007343.png
  •   Michael Mierwinski replied privately
  • Daniel replied

    Screenshot 2 is missing the FROM after the *.

    7495011998.png

    Disregard my other message.

  • Michael Mierwinski replied

    Daniel, same thing.  As I mentioned, I tried EVERY possible iteration I could think of.  This one has the from and still same error.


    3405817434.png


  • Daniel replied

    try removing the quotes "

  • Michael Mierwinski replied

    When I do that it says there are no entries (filtered from NaN total entries). For some reason it thinks it's filtered as well, but it's not.


    7724489962.png



  • Michael Mierwinski replied

    What does the nested select statement do?  Or what is it supposed to do?  A single one at least returns all the records.  Adding the TMP after it doesn't make a difference when trying to search.

    3775102797.png
  • Daniel replied

    There was a bug in server-side processing. Looks like it might is a different issue.

    I use MySQL in the setup I manage. I am having a play with mssql now.

    Could you try the following (please check the spelling):

    select * from MAOCWDEV.EDI_ASOSCOLON_ProductMIDFinalNoduplicate

  • Michael Mierwinski replied

    Doesn't work.

    4838918232.jpg



  • Daniel replied

    Can you try getting data from MSSQL that has only one row?

    That way we can rule out server-side processing and access to the database.

  • Michael Mierwinski replied

    I use the same database and have 3 other table pages. All work fine but have many less records. Maybe 5000 at most. This one with 2.6 million Just doesn't seem to filter when using the search. 

    I really need this for a project that's was supposed to start Monday. Are there any workarounds??   I even limited all the columns I don't need to search and it doesn't help. I really only need three columns to be searchable 

  • Daniel replied

    Ok, For the search thing.
    put the following around your query:

    select * from (                            ) tmp

    ^ that is what I do to fix the search in MySQL.

  • Michael Mierwinski replied

    That gives the below error

    6782274183.png


  • Michael Mierwinski replied

    Even though it gives that error, it appears to work on the front end so this might work for what I need.

  • Daniel replied

    2585065926.png

    2377150366.png

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    8592364538.png
    8554794493.png



    ^ the above is the issue the fix fixes.

    Side note
    Where is the order by coming from?

    6512914793.png
  • Michael Mierwinski replied

    It must be inserted by your code somehow because I'm not putting that in.  I just assumed it put the query inside some other call to the database. 

  •  472
    Isidora replied

    Hi Michael,

    Thank you for your purchase.

    Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.


    Hi Daniel,

    When you are creating tables that are SQL based, in wpDataTables for server-side logic like searching,sorting, filtering it is responsible dynamic logic for creating dynamic queries to get data from database because of the performance and security. 

    Please open new ticket and our support agents will help you out, because solution can be different from issue of this ticket so we do not want to confuse other customers when search for solution for similar issues.

    Thank you for understanding.

    Best regards.



    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •   Michael Mierwinski replied privately
  •   Isidora replied privately
  •   Michael Mierwinski replied privately
  • [deleted] replied

    Hi Michael!

    I'm sorry to bother you on weekends (you don't have to reply if this is outside of your work hours); files are with the developers and will contact you back as soon as it's tested and solution is found.

  • Michael Mierwinski replied

    Thank you. If you need access again let me know and I can send a new link as that one is expired now. 

  • [deleted] replied

    Hi Michael,

    that would be fantastic, please do send new access when you have timesmile.png

  •   Michael Mierwinski replied privately
  •  2,572
    Aleksandar replied

    Hello again Michael

    Please provide us with a new token, and our developers will take a look at this later today. Remember to respond in a Private response.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2,572
    Aleksandar replied

    Hi again Michael

    Sorry for another response, I just spoke with Milan.

    He actually logged into your website last week, and he could see that the table loads in the back-end. It takes a bit more time for it to load, but that's because it has over 2 million entries. Filters and search seems to work fine when he checked, so can you please tell us what exact issues you have with the table?

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Michael Mierwinski replied

    I believe the original issue was there was some code being inserted to the query by your plugin and Daniel didn't know where it was coming from.  In addition when doing just a simple select on the entire table the results were not searchable.   It's working now so that's fine with me but not sure why it would need nesting or anything else to make it work.  

    Since it's working now we can close the request.

  •  2,572
    Aleksandar replied

    Thanks for letting me know, Michael

    wpDataTables is not a database management plugin, and we're using a 3rd party PHP SQL parser that's far from perfect. A simple query like "SELECT column FROM table" should work fine, and unless it's coming from a separate DB connection I don't see any other reason why the search wouldn't work.

    I'd need to take a look at the table and the database to see and try and find the cause. Daniel - if you're still having these issues, please feel free to open a new ticket, and we'll gladly help you out.

    Michael, if you experience any other issues with the plugin, please open a new ticket and we'll gladly help you out.

    Best!

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables