Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module-xml: XML generation fails if an SQL NULL value is present #4880

Closed
davidnich opened this issue Apr 9, 2024 · 0 comments
Closed

module-xml: XML generation fails if an SQL NULL value is present #4880

davidnich opened this issue Apr 9, 2024 · 0 comments

Comments

@davidnich
Copy link
Contributor

should be treated as NOTHING - ex with Qore 0.8.13.4:

$ qore -lxml -nX 'make_xml({"a": NULL})'
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<a></a>
"

With the current Qore version:

$ qore -l xml -nX 'make_xml({"a": NULL})'
unhandled QORE System exception thrown in TID 1 at 2024-04-09 12:17:07.211817 Tue +02:00 (CEST) in make_xml() (<command-line>:1 (Qore builtin code))
MAKE-XML-ERROR: cannot serialize type 'NULL'
call stack:
  1: make_xml() (<command-line>:1 (Qore builtin code))
@davidnich davidnich added this to the 2.0 milestone Apr 9, 2024
@davidnich davidnich self-assigned this Apr 9, 2024
@davidnich davidnich added this to To do in Qore Development via automation Apr 9, 2024
davidnich added a commit to qorelanguage/module-xml that referenced this issue Apr 9, 2024
refs qorelanguage#4881 fixed SQL I/O callback handling
davidnich added a commit to qorelanguage/module-xml that referenced this issue Apr 9, 2024
…ack_fixes

refs qorelanguage/qore#4880 fixed serializing data with SQL NULL values
davidnich added a commit to qorelanguage/module-xml that referenced this issue Apr 9, 2024
refs qorelanguage#4881 fixed SQL I/O callback handling
@davidnich davidnich added the fixed label Apr 9, 2024
Qore Development automation moved this from To do to Done Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant