[Monetdb-developers] XQUF: "rename . with ." => "rename . into ." ?

Stefan Manegold Stefan.Manegold at cwi.nl
Sat Feb 10 12:07:42 CET 2007


Dear all,

maybe I missed the repective checkin (-message),
but has the syntax of

	do rename . with .

recently (read yesterday) been changed into

	do rename . into .

========
.../pathfinder $ find * -type f | xargs grep --color 'do.*rename.*into'
--------
compiler/core/fs.brg:             * [[ do rename <TargetExpr> into <NewNameExpr> ]]
compiler/parser/parser.y:RenameExpr                : "do rename" TargetExpr "into" NewNameExpr
========

??

If this was intended, we should also update the repective documentation and tests!

========
.../pathfinder $ find * -type f | xargs grep --color 'do.*rename.*with'
--------
EXTENSIONS:  "do rename" TargetExpr "with" NewNameExpr
tests/Update/Tests/update.xq:         do rename exactly-one($elem/@attribute) with "Attribute",
tests/Update/Tests/update.xq:         do rename exactly-one($elem/@dummy) with "foo",
tests/Update/Tests/update.xq: return do rename exactly-one($elem) with "Element"
tests/Update/Tests/update.xq: do rename exactly-one($testdoc//processing-instruction(pi1000)) with "bar",
tests/Update/Tests/update.xq: do rename exactly-one($testdoc//processing-instruction(pi5000)) with "xyzzy",
========
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d-Fedora4/tests_Update/update.err.00.html
========

Stefan

ps: "find" & "grep" are you friends --- quite handy to make such changes
    *consistenstly* ...

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list