~mordred/drizzle-interface/cython-interface

« back to all changes in this revision

Viewing changes to lua/examples/simple_multi.lua

  • Committer: Monty Taylor
  • Date: 2009-11-23 16:53:44 UTC
  • mfrom: (117.1.9 drizzle-interface)
  • Revision ID: mordred@inaugust.com-20091123165344-fhht1jfc8puh8nno
Merged Max from lp:~chromakode/drizzle-interface/dbapi

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  if result:error_code() ~= 0 then
53
53
    print( i, result:error_code() .. ':' .. result:error() )
54
54
  else
55
 
    local row = result:row_next()
 
55
    local row = result:next_row()
56
56
    while row do
57
57
      print( i, table.concat( row, ':' ) )
58
 
      row = result:row_next()
 
58
      row = result:next_row()
59
59
    end
60
60
  end
61
61
end