SQL errors in my log again , i do not understand why

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
zicht
Posts: 300
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

SQL errors in my log again , i do not understand why

Post by zicht »

Hi

I try to put a link into a text-sensor (dummy)
Value of the text sensor
string value
test='<A href="https://google.nl/maps/search/ 51.xxxxx,4.xxxxx" target="_blanc"><font size="3" color="000000">Sometext</font></a>'
code used to put it in the text sensor :
commandArray[#commandArray + 1] = {['UpdateDevice'] = '638'..'|0|'..test}
error in the log :
2017-10-09 19:09:13.456 Error: SQL Query("UPDATE DeviceStatus SET nValue='0',sValue='Sometext ',LastUpdate='2017-10-09 19:09:13' WHERE (ID = '638')") : near "3": syntax error
Does anybody understand why i get these errors ???
(It worked before for months now since update to V3.8552 i see these errors !)
The weird thing is that the text sensor actually is updated.. and the link is working (masked sensitive data with XXXX on above link)
So it is pure SQL driven somehow

Many many thanks in advance
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
jannl
Posts: 825
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:

Re: SQL errors in my log again , i do not understand why

Post by jannl »

Use a print statement of the exact contents of the text string, I think something goes wrong with quotes or so.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest