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

Cannot generate from an XML schema with an xmlns that specifies an old version #7218

Closed
deinspanjer opened this issue Feb 24, 2018 · 2 comments

Comments

@deinspanjer
Copy link

Expected behavior and actual behavior:

I was trying to generate some Java files based off an older XMLDatabase captured from jooq 3.5.4. The generator gave the following output:

[INFO] Using XML file           : /.../information_schema.xml
[WARNING] No schemata were loaded  : Please check your connection settings, and whether your database (and your database version!) is really supported by jOOQ. Also, check the case-sensitivity in your configured <inputSchema/> elements : null
[INFO] Excluding empty catalog  :
[INFO] Removing excess files

After trying a couple of different things, I eventually tried just replacing the xmlns line:
<information_schema xmlns="http://www.jooq.org/xsd/jooq-meta-3.5.4.xsd">
with one output by the current version:
<information_schema xmlns="http://www.jooq.org/xsd/jooq-meta-3.10.0.xsd">
and it worked with no further changes to the actual content of the file.

Steps to reproduce the problem:

  • Generate an XMLDatabase
  • Change the information_schema xmlns to an older version such as 3.5.4
  • try to generate from the XMLDatabase

Versions:

  • jOOQ: 3.10.0
  • Java: 1.8.144
  • Database (include vendor): MSSQL
  • OS: Mac
@lukaseder
Copy link
Member

Thanks for your report. Indeed, that should be done for this XML content type as well. jOOQ is already doing it for https://www.jooq.org/xsd/jooq-codegen-3.10.0.xsd, but apparently not for http://www.jooq.org/xsd/jooq-meta-3.10.0.xsd

@lukaseder
Copy link
Member

This is in fact a duplicate of #6727.
I'll merge this to 3.10.6 (#7220) and 3.9.7 (#7221)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants