Skip to content

Releases: overextended/oxmysql

v1.8.3

02 Dec 08:33
Compare
Choose a tag to compare

Bug Fixes

v1.8.2

01 Dec 21:20
Compare
Choose a tag to compare

Features

  • mysql2 patch-package (Linden)

Bug Fixes

  • transactions: resolve error when executing transaction (Linden)

Code Refactoring

  • enable JS exports for more recent artifacts (Linden)
  • minor cleanup and formatting (Linden)
  • execute: await connection to send query (Linden)

Chores

  • update dependencies (Linden)

v1.8.1

29 Nov 17:12
cd2b5db
Compare
Choose a tag to compare

Code Refactoring

  • pool: new createConnection function (Linden)

Commits

  • cd2b5db: Update fxmanifest.lua (Linden)

v1.8.0

14 Nov 22:11
Compare
Choose a tag to compare

Bug Fixes

  • lib: incorrect safeArgs for Sync.transaction (callback) (Linden)

Code Refactoring

  • pool: permit extra user and password aliases (Linden)

Chores

Full Changelog: v1.7.1...v1.8.0

node-mysql2 - 2.3.3 ( 5/11/2021 )

  • fix ColumnDefinition.db is broken when encoding is not utf-8

  • typeCast: Fix field.length to be number

  • initial support for coverage reporting in CI

  • fix performance regression for results with large (300+) number of columns

  • fork: merged #1441 (do not set 'CONNECT_WITH_DB' flag when database is not set)

v1.7.1

30 Oct 21:34
Compare
Choose a tag to compare

Features

  • lua: update http link and version checking (Linden)

Bug Fixes

  • parser: Check if query is string type not undefined (Dunak)
  • pool: Remove default database value from config (Dunak)

Code Refactoring

  • versioncheck: remove module and perform check with Lua (Linden)
  • lua: remove file check and move to subdirectory (Linden)
  • webpack: update patterns and do not minify (Linden)

Chores

  • workflow: update run tasks (Linden)
  • lua: update fxmanifest version (Linden)

v1.7.0

23 Oct 15:16
Compare
Choose a tag to compare

Prepared statements

These were the default function utilised in the initial release, however several incompatibilities and the general trend of using string concatenation lead to many issues. This new export utilises prepared statements for specific purposes and is not generally recommended if you're uncertain about return values.

If you would like to utilise them, refer to these forks of esx_status and es_extended for updated save functions.

Documentation updates will be coming, so if you're not sure how to use them just don't.


Features

  • Add an export to call prepared statements (#54) #54 (Linden)

Code Refactoring

  • lib: Update formatting for improved LDoc usage (Linden)
  • prepare: Rename prepared export to prepare (Linden)

Chores

Commits

  • 1d0a5bc: Update issue templates (Linden)

v1.6.3

18 Oct 17:43
Compare
Choose a tag to compare

Bug Fixes

  • Resolve null length on some queries (Linden)

Chores

v1.6.2

17 Oct 15:22
Compare
Choose a tag to compare

Regarding the regex fix

Attempting to allow nil to pass to parameters threw errors in edge cases where JSON was being included in a query (rather than a parameter), so it would assume it contained a whole bunch of named placeholders.

This only occured in v1.6.1 and fortunately threw errors rather than attempting to resolve each value to NULL.

Only known instance of this is in ESX Legacy due to the bulk SavePlayers.

Bug Fixes

  • nil parameters with named placeholders #51 (darksaid98)
  • regex: Prevent converting JSON in queries into placeholders (Linden)
  • parser: Only assign null values if placeholders were found (Linden)

Styles

Chores

  • Update version and dependencies (Linden)

v1.6.1

16 Oct 15:06
Compare
Choose a tag to compare

Bug Fixes

Chores

v1.6.0

15 Oct 23:47
Compare
Choose a tag to compare

Features

  • lib: Setup support for lua docs (Linden)
  • Add support for nil parameters #47 (Linden)

Bug Fixes

  • manifest: Disable server_only (Linden)
  • Resolve error when parameter length does not match #47 (Linden)
  • Assign object entries to array #47 (Linden)
  • Display correct query execution time #47 (Linden)
  • Return boolean for TINYINT #47 (Linden)
  • parser: Allow queries with multiple placeholders and no parameters #47 (Linden)
  • lib: Allow transactions to utilise safeArgs function (Linden)
  • config: Reset colour after version check message (Linden)

Chores

  • Update comments for function return values (Linden)
  • Version bump dependencies #47 (Linden)
  • Point mysql2 dependency to fork #47 (Linden)
  • Version bump (Linden)

Commits