Skip to content

Set the date and interval styles of pymeos_initialize from their names - #105

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/initialize-style-extra
Oct 31, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/initialize-style-extra

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

pymeos_initialize sets a date style or an interval style given by name
through meos_set_datestyle and meos_set_intervalstyle, passing each the
null value its extra parameter takes in C: _ffi.NULL for the void
pointer of meos_set_datestyle and 0 for the int of
meos_set_intervalstyle. MEOS overwrites extra with the style it parses
from the name, so the value passed is never read.

tests/meos_init_test.py sets each date style and interval style by name
and reads it back with meos_get_datestyle and meos_get_intervalstyle,
restoring the styles conftest initializes after each case.

pymeos_initialize sets a date style or an interval style given by name
through meos_set_datestyle and meos_set_intervalstyle, passing each the
null value its extra parameter takes in C: _ffi.NULL for the void
pointer of meos_set_datestyle and 0 for the int of
meos_set_intervalstyle. MEOS overwrites extra with the style it parses
from the name, so the value passed is never read.

tests/meos_init_test.py sets each date style and interval style by name
and reads it back with meos_get_datestyle and meos_get_intervalstyle,
restoring the styles conftest initializes after each case.
@estebanzimanyi
estebanzimanyi merged commit cfed5e3 into MobilityDB:master Oct 31, 2026
8 checks passed
@estebanzimanyi
estebanzimanyi deleted the fix/initialize-style-extra branch October 31, 2026 15:04
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