File: 45delete.rb

package info (click to toggle)
ruby-odbc 0.99998-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 564 kB
  • sloc: ansic: 8,517; ruby: 851; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
$count = $c.do("delete from test where 1 = 1")
if $count != 4
  $stderr.print "delete row count: expected 4, got ", $count, "\n"
end
$count = $c.do("delete from test where 1 = 1")
if $count != 0
  $stderr.print "delete row count: expected 0, got ", $count, "\n"
end