[OpenSIPS-Devel] [OpenSIPS/opensips] 0793d7: [sqlops] improve prepare statements support

Bogdan Andrei IANCU noreply at github.com
Wed Mar 13 12:37:46 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0793d71878ee9bf41f25e3e1d653cfc4933b401b
      https://github.com/OpenSIPS/opensips/commit/0793d71878ee9bf41f25e3e1d653cfc4933b401b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
    M modules/sqlops/sqlops_db.c

  Log Message:
  -----------
  [sqlops] improve prepare statements support

Log warning when the buffer for building query ID is not large enaugh; Also point to the modparam to adjust the buffer size
For "select", take the "order by" col into consideration too, when building the query ID


  Commit: de922d293c217bb628bb602d74dc3fa198d4cc82
      https://github.com/OpenSIPS/opensips/commit/de922d293c217bb628bb602d74dc3fa198d4cc82
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
    M db/db_cap.h
    M modules/db_mysql/db_mysql.c

  Log Message:
  -----------
  [db] added new DB_CAP_PREPARED_STMT capability

to identify the db backends able to provide prepared statements.
DB_MYSQL is for now the only condidate


  Commit: 9ec3a02e3c49ce60e3fda59b10f05a8479fdd4c9
      https://github.com/OpenSIPS/opensips/commit/9ec3a02e3c49ce60e3fda59b10f05a8479fdd4c9
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2024-03-13 (Wed, 13 Mar 2024)

  Changed paths:
    M modules/sqlops/sqlops_db.c

  Log Message:
  -----------
  [sqlops] improve the prepared statements support II

Use the new DB_CAP_PREPARED_STMT capability to test if the backend support statements and build the query ID only if so.


Compare: https://github.com/OpenSIPS/opensips/compare/71fd974fe6bc...9ec3a02e3c49

To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list