Files
librenms-librenms/includes
Thom Seddon 05d60936e6 Remove last logical operator from generated SQL in GenGroupSQL
Previously this function would output invalid SQL as a logical
operator would be included after every condition. This change
removes the final logical operator so the SQL is valid.

For example, previously the single rule:
`bgpPeers.bgpPeerRemoteAs = "6939" &&"`

Would generate:
```
SELECT DISTINCT(bgpPeers.device_id) FROM bgpPeers WHERE device_id=? && (bgpPeers.bgpPeerRemoteAs = "6939" &&) LIMIT 1
```

This changes means it will generate:
```
SELECT DISTINCT(bgpPeers.device_id) FROM bgpPeers WHERE device_id=? && (bgpPeers.bgpPeerRemoteAs = "6939") LIMIT 1
```
2015-11-20 14:58:21 +00:00
..
2015-08-19 19:03:26 +00:00
2015-07-15 11:04:22 +02:00
2015-07-15 11:04:22 +02:00
2015-11-20 13:03:01 +00:00
2014-03-07 22:21:22 +01:00
2015-11-18 22:12:27 +00:00
2015-09-19 15:51:53 +01:00
2015-07-15 11:04:22 +02:00
2015-11-18 22:12:27 +00:00
2015-07-15 11:04:22 +02:00
2015-07-15 11:04:22 +02:00
2015-09-30 15:20:06 +00:00
2015-09-30 15:20:06 +00:00
2015-08-08 19:27:18 +00:00
2015-07-15 11:04:22 +02:00
2015-07-15 11:04:22 +02:00
2015-07-21 20:42:51 +02:00
2015-07-15 11:04:22 +02:00
2015-07-15 11:04:22 +02:00