db: fixed bug in db docs

This commit is contained in:
Ryan Culpepper 2012-08-23 14:25:14 -04:00
parent 7da5063782
commit 81b022a3b8
2 changed files with 5 additions and 14 deletions

View File

@ -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))
#""
#"")

View File

@ -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")
]
}