fmt
This commit is contained in:
parent
e7b944578e
commit
c6760da250
1 changed files with 5 additions and 5 deletions
|
|
@ -92,11 +92,11 @@ let profile request =
|
|||
let user =
|
||||
Db.with_db (fun db ->
|
||||
exec_raw_args db "SELECT * FROM user WHERE nick=?;" [| Data.TEXT nick |]
|
||||
~f:Cursor.to_list
|
||||
)
|
||||
~f:Cursor.to_list )
|
||||
in
|
||||
match user with
|
||||
| Ok [ [| Data.TEXT nick; Data.TEXT password; Data.TEXT email |] ] ->
|
||||
Format.sprintf "nick = `%s`; password = `%s`; email = `%s`" nick password email
|
||||
Format.sprintf "nick = `%s`; password = `%s`; email = `%s`" nick password
|
||||
email
|
||||
| Ok _ -> "incoherent db answer"
|
||||
| Error e -> Format.sprintf "db error: %s" (Rc.to_string e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue