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:
parent
786104778c
commit
8dc3ee0ff3
@ -41,7 +41,7 @@
|
|||||||
###########################################################################################################################
|
###########################################################################################################################
|
||||||
# Versions History:
|
# 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.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.1.0 13.06.2017 column "UNIT" added to fetchrow result
|
||||||
# 5.0.6 13.06.2017 add Aria engine to optimise_tables
|
# 5.0.6 13.06.2017 add Aria engine to optimise_tables
|
||||||
@ -3571,7 +3571,7 @@ sub sqlCmd_DoParse($) {
|
|||||||
|
|
||||||
my @rows;
|
my @rows;
|
||||||
my $nrows = 0;
|
my $nrows = 0;
|
||||||
if($sql =~ m/^\s*(select|pragma)/is) {
|
if($sql =~ m/^\s*(select|pragma|show)/is) {
|
||||||
while (my @line = $sth->fetchrow_array()) {
|
while (my @line = $sth->fetchrow_array()) {
|
||||||
Log3 ($name, 4, "DbRep $name - SQL result: @line");
|
Log3 ($name, 4, "DbRep $name - SQL result: @line");
|
||||||
my $row = join("|", @line);
|
my $row = join("|", @line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user