mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 17:52:28 +00:00
Fixing SQL statement
This commit is contained in:
@@ -216,10 +216,10 @@ namespace OpenWifi {
|
||||
std::string Query;
|
||||
|
||||
if(Prefix[0]=='*') {
|
||||
Query = fmt::format(" operatorId={} and (right(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
Query = fmt::format(" operatorId='{}' and (right(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
operatorId, Prefix.size()-1, Prefix.substr(1), Prefix.size()-1, Prefix.substr(1));
|
||||
} else {
|
||||
Query = fmt::format(" operatorId={} and (left(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
Query = fmt::format(" operatorId='{}' and (left(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
operatorId, Prefix.size(), Prefix, Prefix.size(), Prefix);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user