Commit Graph
3 Commits
Author SHA1 Message Date
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
Thom Seddon 0f9c93d985 I aggree to the conditions of the Contributor Agreement contained
in doc/General/Contributing.md

fixes #1059
2015-05-23 13:27:58 +01:00
Thom Seddon 7508f58f7b Alert failed database selection in build-base.php
Previously this would continue and subsequent queries would fail
verbosely
2015-05-18 20:12:52 +01:00