[OpenSIPS-Devel] [OpenSIPS/opensips] c871d9: db_mysql: Fix regression in PS handling

Liviu Chircu noreply at github.com
Mon Aug 16 15:38:02 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c871d9edfce7e15adc94a11e6a02179b0f4f88d8
      https://github.com/OpenSIPS/opensips/commit/c871d9edfce7e15adc94a11e6a02179b0f4f88d8
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-08-16 (Mon, 16 Aug 2021)

  Changed paths:
    M modules/db_mysql/dbase.c

  Log Message:
  -----------
  db_mysql: Fix regression in PS handling

Commit 87f241651 introduced a regression in db_mysql where modules using
prepared statements on top of it would run into errors.

Example behavior of auth_db on a basic user auth query:

    ERROR:db_mysql:db_mysql_store_result: driver error:
        Commands out of sync; you can't run this command now
    ERROR:auth_db:get_ha1: failed to query database

Credits to @masudmuborakshohi for the accurate report and logs!
Fixes #2593

(cherry picked from commit 4ef6bab4d95d9c23127cad776c126afb0ed77106)





More information about the Devel mailing list