diff --git a/collects/db/scribblings/example-log.rktd b/collects/db/scribblings/example-log.rktd index 905c977c34..e2469bfb1f 100644 --- a/collects/db/scribblings/example-log.rktd +++ b/collects/db/scribblings/example-log.rktd @@ -290,20 +290,11 @@ ((3) 0 () 0 () () (c values c (u . "a crowd"))) #"" #"") -((query-value pgc "select d from the_numbers where n = $1" 100) - ((3) - 0 - () - 0 - () - () - (c - exn - c - "query-value: query returned wrong number of rows\n statement: \"select d from the_numbers where n = $1\"\n expected: 1\n got: 0")) +((query-maybe-value pgc "select d from the_numbers where n = $1" 100) + ((3) 0 () 0 () () (c values c #f)) #"" #"") -((query-value c "select count(*) from the_numbers") +((query-maybe-value c "select count(*) from the_numbers") ((3) 0 () 0 () () (c values c 4)) #"" #"") diff --git a/collects/db/scribblings/query.scrbl b/collects/db/scribblings/query.scrbl index 95485f5c6e..272a928d5f 100644 --- a/collects/db/scribblings/query.scrbl +++ b/collects/db/scribblings/query.scrbl @@ -228,8 +228,8 @@ The types of parameters and returned fields are described in that case, @racket[#f] is returned. @examples[#:eval the-eval -(query-value pgc "select d from the_numbers where n = $1" 100) -(query-value c "select count(*) from the_numbers") +(query-maybe-value pgc "select d from the_numbers where n = $1" 100) +(query-maybe-value c "select count(*) from the_numbers") ] }