projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d18d0
)
cql2pqf: allow PQF queries from stdin
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 24 Sep 2013 15:55:20 +0000
(17:55 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 24 Sep 2013 15:55:20 +0000
(17:55 +0200)
util/cql2pqf.c
patch
|
blob
|
history
diff --git
a/util/cql2pqf.c
b/util/cql2pqf.c
index
13c62b0
..
1ea16e6
100644
(file)
--- a/
util/cql2pqf.c
+++ b/
util/cql2pqf.c
@@
-73,9
+73,14
@@
int main(int argc, char **argv)
if (reverse)
{
+ char buf[1024];
+
if (!query)
- usage();
- else
+ {
+ if (fgets(buf, sizeof buf, stdin))
+ query = buf;
+ }
+ if (query)
{
ODR odr = odr_createmem(ODR_ENCODE);
YAZ_PQF_Parser pp = yaz_pqf_create();