1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

"Prepared statement needs to be re-prepared" only for bots?

Discussão em 'Outras Linguagens' iniciado por Stack, Janeiro 4, 2021.

  1. Stack

    Stack Membro Participativo

    For some time, after I set "ATTR_EMULATE_PREPARES" in my Laravel project to "false" (solution for another problem), I'm getting errors "Prepared statement needs to be re-prepared" referring to many different SQL queries in different places, e.g:

    SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared (SQL: select * from `users` where `users`.`id` in (987))

    SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared (SQL: select * from `category_groups` where `category_groups`.`parent_id` = 11 and `category_groups`.`parent_id` is not null and `category_groups`.`deleted_at` is null order by `order` asc, `name` asc)


    However, I can't reproduce this error. Furthermore, when I check the logs, these errors are always triggered by some bot/web-crawler.
    Is it possible that this SQL error occurs only for bots?

    Continue reading...

Compartilhe esta Página