2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

93_DbRep: V5.2.1, bugfix in sqlCmd to support PRAGMA, UTF8

git-svn-id: https://svn.fhem.de/fhem/trunk@14573 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2017-06-25 19:53:19 +00:00
parent 786104778c
commit 8dc3ee0ff3

View File

@ -41,7 +41,7 @@
###########################################################################################################################
# Versions History:
#
# 5.2.1 25.06.2017 bugfix in sqlCmd_DoParse (PRAGMA, UTF8)
# 5.2.1 25.06.2017 bugfix in sqlCmd_DoParse (PRAGMA, UTF8, SHOW)
# 5.2.0 14.06.2017 UTF-8 support for MySQL (fetchrows, srvinfo, expfile, impfile, insert)
# 5.1.0 13.06.2017 column "UNIT" added to fetchrow result
# 5.0.6 13.06.2017 add Aria engine to optimise_tables
@ -3571,7 +3571,7 @@ sub sqlCmd_DoParse($) {
my @rows;
my $nrows = 0;
if($sql =~ m/^\s*(select|pragma)/is) {
if($sql =~ m/^\s*(select|pragma|show)/is) {
while (my @line = $sth->fetchrow_array()) {
Log3 ($name, 4, "DbRep $name - SQL result: @line");
my $row = join("|", @line);