fn-format-number first parameter string

Bug #1090164 reported by Juan Zacarias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Critical
Paul J. Lucas

Bug Description

failing tests 2: numberformat38 numberformat15 numberformat41 numberformat42

First parameter when String should return NaN instead of error, it seems there should be a different way to handle strings as first parameter than just an error

Query
format-number('foo','#############')

Error
Expected result: NaN. Found error XPTY0004 - The query (3f405e36-10f1-4178-9845-b8d485921b4d) evaluated using xqxq:evaluate raised an error at line 9 column 1: The query (96325edb-202b-4f84-8a82-60cfd97fdde6) evaluated using xqxq:evaluate raised an error at line 6 column 1: first parameter to format-number() function is type xs:string that is not allowed

Tags: fots
Juan Zacarias (juan457)
description: updated
Changed in zorba:
importance: Undecided → Critical
assignee: nobody → Paul J. Lucas (paul-lucas)
milestone: none → 2.9
summary: - FOTS: fn-format-number first parameter string
+ fn-format-number first parameter string
tags: added: fots
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.