• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MobilityDB / MobilityDB / 23755778968 / 1
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2026 04:35PM UTC
Files 129
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Mar 2026 04:30PM UTC coverage: 95.217% (+0.005%) from 95.212%
23755778968.1

push

github

web-flow
Enable using MeosArray beyond parsing (#768)

This commit moves the meos_array defintions from type_parser.c to
meos_internal.c to be available for other places in the codebase.
Additionally, we improve the API to be more uniform and easier to use.

Core changes to meos_array.c:
- meos_array_add: when varlength, store the pointer as a Datum instead
  of copying bytes from the address. Callers pass the pointer directly
  (e.g., meos_array_add(array, inst)) instead of wrapping in Datum.
- meos_array_get_n: return void * instead of Datum. For varlength arrays,
  return the stored pointer; for fixed-size arrays, return a pointer to
  the element in the internal buffer.
- meos_array_reset/destroy: add free_elems parameter. When true and the
  array is varlength, pfree each stored pointer. The array does not
  unconditionally free pointed-to memory; ownership is explicit.
- meos_array_destroy: fix memory leak by freeing array->elems.

Header changes:
- Move MeosArray typedef from public meos.h to meos_internal.h.
- Improve varlength field comment to clarify pointer storage semantics.

Caller updates (type_parser.c, tspatial_parser.c, trgeo_parser.c):
- Use meos_array_init(sizeof(Datum)) for set_parse (always stores Datums).
- Pass pointers directly to meos_array_add for temporal parsers.
- Replace DatumGetTInstantP/DatumGetTSequenceP with simple casts.
- Pass true to meos_array_destroy to free parsed objects on cleanup.

Co-authored-by: Maxime Schoemans <maxime.schoemans@enterprisedb.com>

32665 of 34306 relevant lines covered (95.22%)

1142066.22 hits per line

Source Files on job 23755778968.1
  • Tree
  • List 129
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23755778968
  • f11b7443 on github
  • Prev Job for on master (#23606556697.1)
  • Next Job for on master (#24401267285.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc