mysql2 3.14.1 → 3.14.2-canary.1ee48cce

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,7 +111,11 @@ function compile(fields, options, config) {
111
111
  field.columnType
112
112
  )
113
113
  ) {
114
- return packet.readDateTimeString(parseInt(field.decimals, 10));
114
+ return packet.readDateTimeString(
115
+ parseInt(field.decimals, 10),
116
+ ' ',
117
+ field.columnType
118
+ );
115
119
  }
116
120
 
117
121
  if (field.columnType === Types.TINY) {
@@ -146,7 +146,9 @@ function getBinaryParser(fields, _options, config) {
146
146
  ].includes(field.columnType)
147
147
  ) {
148
148
  return packet.readDateTimeString(
149
- parseInt(field.decimals, 10)
149
+ parseInt(field.decimals, 10),
150
+ ' ',
151
+ field.columnType
150
152
  );
151
153
  }
152
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.14.1",
3
+ "version": "3.14.2-canary.1ee48cce",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",
@@ -60,7 +60,7 @@
60
60
  "@eslint/eslintrc": "^3.3.0",
61
61
  "@eslint/js": "^9.21.0",
62
62
  "@eslint/markdown": "^6.2.2",
63
- "@types/node": "^22.0.0",
63
+ "@types/node": "^24.0.0",
64
64
  "@typescript-eslint/eslint-plugin": "^8.26.0",
65
65
  "@typescript-eslint/parser": "^8.26.0",
66
66
  "assert-diff": "^3.0.2",