[SR-Users] sql_xquery() and xavp checks
Alex Balashov
abalashov at evaristesys.com
Mon Apr 7 15:02:46 CEST 2014
On 04/07/2014 08:57 AM, Fred Posner wrote:
> Have you tried something like...
>
> if (sql_xquery("ca", "SELECT * FROM gateways", "gateways") == 1) {
> #do stuff
> } else {
> #dang nabbit
> }
I haven't, but I've been satisfied with this as a solution:
sql_xquery("ca", "SELECT * FROM gateways", "gateways");
if(!defined $xavp(gateways)) {
# dang nabbit
}
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
More information about the sr-users
mailing list