I'm using DB Connect to send search results to MySQL. My search command is:
... | dboutput type=update notFound=insert database=mydb table=mytable fields=IPAddress AS ip, NetAddress AS mac, ComputerName AS device_name,
Manufacturer AS manufacturer, Model AS model_name key=ip,mac *
This produces the error message "No value specified for parameter 1". Turning on debug logging I see the following query is generated:
UPDATE mytable SET `AS`=$AS$, ip=$ip$, NetAddress=$NetAddress$, ComputerName=$ComputerName$, Manufacturer=$Manufacturer$, Model=$Model$, mac=$mac$, IPAddress=$IPAddress$ WHERE ip = $ip$
Notice the 'AS' column was inserted. Where did it come from and how do I get rid of it?
Also, my key argument specified two fields, but only one appears in the query. Is that another bug or something I did wrong?