Skip to content

Add jvm_args parameter to connect() for custom JVM arguments (fixes #90)#91

Open
HenryNebula wants to merge 1 commit intodevfrom
triage/90-jvm-args-param
Open

Add jvm_args parameter to connect() for custom JVM arguments (fixes #90)#91
HenryNebula wants to merge 1 commit intodevfrom
triage/90-jvm-args-param

Conversation

@HenryNebula
Copy link
Copy Markdown
Owner

Summary

Fixes #90: Adds a jvm_args parameter to connect() allowing users to pass custom JVM arguments (e.g., -Duser.timezone=America/Toronto, -Dfile.encoding=UTF-8).

Previously, there was no way to pass custom JVM arguments. The codebase even had a TODO comment referencing this exact feature. This resolves legacy issue baztian/jaydebeapi#161.

Changes

  • Added jvm_args parameter to connect() and _jdbc_connect_jpype()
  • User-provided JVM args are prepended before built-in args (class path, library path, add-opens)
  • Added mock test verifying the parameter is accepted
  • Added integration test verifying system properties are set via jvm_args

Test plan

  • Added test_connect_accepts_jvm_args in test_mock.py
  • Added test_jvm_args_sets_system_property in test_integration.py
  • Verified fix passes full mock test suite (61/61)
  • Verified no regressions in HSQLDB integration tests (33/33)

Closes #90

Generated with Claude Code

Users can now pass custom JVM arguments (e.g., -Duser.timezone,
-Dfile.encoding=UTF-8) via the jvm_args parameter. These are applied
on the first connect() call when the JVM starts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HenryNebula HenryNebula force-pushed the triage/90-jvm-args-param branch from be9846f to db8eb92 Compare April 28, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant