db: fixed bug in db docs
This commit is contained in:
parent
7da5063782
commit
81b022a3b8
|
@ -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))
|
||||
#""
|
||||
#"")
|
||||
|
|
|
@ -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")
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user