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:
parent
59844bf5fd
commit
5ac399c458
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= mnogosearch
|
||||
PORTVERSION= 3.4.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www databases
|
||||
MASTER_SITES= http://www.mnogosearch.org/Download/
|
||||
|
||||
|
|
11
www/mnogosearch/files/patch-src-sql-mysql-c
Normal file
11
www/mnogosearch/files/patch-src-sql-mysql-c
Normal 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)))
|
||||
{
|
Loading…
Reference in a new issue