I’m playing a little with the pg of Ruby, and I’m accessing some
I want to update some rows, but I can’t find the method/command to know
if they were updated or not.
For a normal select:
res = conn.exec(‘SELECT id, type FROM scanns WHERE ftp=true’)
print 'records found: ',res.ntuples(),"\n"
but when updating, I can’t use the ntuples() or at least it returns
my rows are updated, I can check it with another tool.
row_update = conn.exec(‘UPDATE scanns SET ftp=false WHERE
print 'records found updating: ',row_update.ntuples(),"\n",
wich command I have to use ?
I have the latest RDoc documentation, but can’t find it …