Re: [Kamailio-Users] sqlops problem

2009-03-03 Thread Daniel-Constantin Mierla
Hello, On 03/03/2009 12:58 PM, BERGANZ François wrote: > > I follow the module instructions and I do : > > sql_query("ca", "select server from servers where etat_ping=’oui’ & > etat_asterisk=’oui’", "nb_srv"); > > $var(i) = 0; > > $var(s)=$dbr(nb_srv=>[server,$var(i)]); ### line 166 > the indexe

[Kamailio-Users] sqlops problem

2009-03-03 Thread BERGANZ François
I follow the module instructions and I do : sql_query("ca", "select server from servers where etat_ping=’oui’ & etat_asterisk=’oui’", "nb_srv"); $var(i) = 0; $var(s)=$dbr(nb_srv=>[server,$var(i)]); ### line 166 I have that error: ERROR:sqlops:sql_parse_index: bad number ERROR:sq