database: read-quoted-string: add default value to optional argument.

This commit is contained in:
Mathieu Lirzin 2016-07-25 20:20:53 +02:00
parent ce0d739622
commit 7292bd5019
No known key found for this signature in database
GPG Key ID: 0ADEE10094604D37
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
db-delete-evaluation
db-add-build-log
read-sql-file
read-quoted-string
sqlite-exec
;; Parameters.
%package-database
@ -170,7 +171,7 @@ INSERT INTO Evaluations (derivation, job_name, specification)\
(λ () body ...)
(λ () (db-close db)))))
(define* (read-quoted-string #:optional port)
(define* (read-quoted-string #:optional (port (current-input-port)))
"Read all of the characters out of PORT and return them as a SQL quoted
string."
(let loop ((chars '()))