www/mnogosearch: Fix with mysql-5.7 and above

Variable "storage_engine" is deprecated in mysql-server version 5.6. It is removed from mysql 5.7. New variable is "default_storage_engine".

PR:	ports/269365
This commit is contained in:
Konstantin Stroykovskiy 2023-03-27 08:56:11 +01:00 committed by Chris Rees
parent 59844bf5fd
commit 5ac399c458
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= mnogosearch
PORTVERSION= 3.4.1
PORTREVISION= 1
CATEGORIES= www databases
MASTER_SITES= http://www.mnogosearch.org/Download/

View file

@ -0,0 +1,11 @@
--- src/sql-mysql.c.orig 2023-02-06 10:23:32.970179000 +0300
+++ src/sql-mysql.c 2023-02-06 10:24:17.488815000 +0300
@@ -206,7 +206,7 @@
{
int myrc;
char qbuf[64];
- udm_snprintf(qbuf, sizeof(qbuf), "SET storage_engine=%s",
+ udm_snprintf(qbuf, sizeof(qbuf), "SET default_storage_engine=%s",
storage_engine[0] ? storage_engine : "MyISAM");
if ((myrc= mysql_query(&mydb->mysql, qbuf)))
{