Skip to content

feat: add bigint, smallint, decimal, binary, time, naive_datetime types#77

Closed
Taure wants to merge 2 commits intomainfrom
feat/bigint-type
Closed

feat: add bigint, smallint, decimal, binary, time, naive_datetime types#77
Taure wants to merge 2 commits intomainfrom
feat/bigint-type

Conversation

@Taure
Copy link
Copy Markdown
Owner

@Taure Taure commented Mar 28, 2026

Summary

  • Adds 6 missing PostgreSQL type mappings with full cast/dump/load support
  • bigint (BIGINT) — FK references to BIGSERIAL id columns
  • smallint (SMALLINT) — flags, scores, small counters
  • decimal (NUMERIC) — precise decimals, money
  • binary (BYTEA) — file data, hashes
  • time (TIME) — time-only values
  • naive_datetime (TIMESTAMP) — timestamps without timezone
  • Includes migration error logging fix (stacktrace + error class)

Test plan

  • Compiles, xref, dialyzer clean
  • Create schema with bigint FK field, run rebar3 kura compile, verify migration runs
  • Unit tests for cast/dump/load of each new type

Taure added 2 commits March 28, 2026 12:00
The catch-all clause in with_migration_lock/2 discarded the stacktrace
and error class, making migration failures nearly impossible to debug.
Now logs structured maps with msg, class, reason, and stacktrace.
Adds missing PostgreSQL type mappings:
- bigint (BIGINT) — FK references to BIGSERIAL id columns
- smallint (SMALLINT) — flags, scores, small counters
- decimal (NUMERIC) — precise decimals, money
- binary (BYTEA) — file data, hashes
- time (TIME) — time-only values
- naive_datetime (TIMESTAMP) — timestamps without timezone

Also includes the migration error logging fix (stacktrace + class).
@github-actions
Copy link
Copy Markdown

🟢 Code Coverage — 94.4%

1840 of 1950 lines covered.


✅ ELP Lint

No diagnostics.


✅ ELP eqWAlize

No diagnostics.


ℹ️ 11 OTP CVEs auto-ignored (already fixed in running version)

These CVEs are patched in the installed OTP version but NVD data
has not been updated to reflect this. They are excluded from the
scan via an auto-generated .trivyignore.

CVE Details
CVE-2026-23943 Fixed in 28.4.1, running 28.4.1 — Pre-auth SSH DoS via unbounded zlib inflate
CVE-2026-23942 Fixed in 28.4.1, running 28.4.1 — SFTP root escape via component-agnostic prefix check in ssh_sftpd
CVE-2026-23941 Fixed in 28.4.1, running 28.4.1 — Request smuggling via first-wins Content-Length parsing in inets httpd
CVE-2026-21620 Fixed in 28.3.2, running 28.4.1 — TFTP Path Traversal
CVE-2016-1000107 Fixed in 28.0.4, running 28.4.1 — Httpd CGI Scripts Environment Variable Pollution AKA "httpoxy"
CVE-2025-58050 Fixed in 28.0.3, running 28.4.1 — Buffer Read Overflow on Regular Expressions with (*scs:) and (*ACCEPT)
CVE-2025-48038 Fixed in 28.0.3, running 28.4.1 — SSH Unverified File Handles can Cause Excessive Use of System Resources
CVE-2025-48039 Fixed in 28.0.3, running 28.4.1 — SSH Unverified Paths can Cause Excessive Use of System Resources
CVE-2025-48040 Fixed in 28.0.3, running 28.4.1 — SSH Malicious Key Exchange Messages may Lead to Excessive Resource Consumption
CVE-2025-48041 Fixed in 28.0.3, running 28.4.1 — SSH_FXP_OPENDIR may Lead to Exhaustion of File Handles
CVE-2025-4748 Fixed in 28.0.1, running 28.4.1 — Absolute Path in Zip Module

@Taure
Copy link
Copy Markdown
Owner Author

Taure commented Mar 29, 2026

Superseded by #78

@Taure Taure closed this Mar 29, 2026
@Taure Taure deleted the feat/bigint-type branch March 31, 2026 22:35
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