Skip to content

Commit

Permalink
www/mnogosearch: Fix with mysql-5.7 and above
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bonkor authored and crees committed Mar 27, 2023
1 parent 59844bf commit 5ac399c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/mnogosearch/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mnogosearch
PORTVERSION= 3.4.1
PORTREVISION= 1
CATEGORIES= www databases
MASTER_SITES= http://www.mnogosearch.org/Download/

Expand Down
11 changes: 11 additions & 0 deletions www/mnogosearch/files/patch-src-sql-mysql-c
@@ -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)))
{

0 comments on commit 5ac399c

Please sign in to comment.