Older go-mysql-driver used collation_id in the handshake packet. But it caused collation mismatch in some situation.
If you don't specify charset nor collation, go-mysql-driver sends SET NAMES utf8mb4 for new connection. This uses server's default collation for utf8mb4.
If you specify charset, go-mysql-driver sends SET NAMES <charset>. This uses the server's default collation for <charset>.
If you specify collation and/or charset, go-mysql-driver sends SET NAMES charset COLLATE collation.
When text protocol is used, go-mysql-driver passed bare []byte to database/sql for avoid unnecessary allocation and conversion.
If user specified *any to Scan(), database/sql passed the []byte into the target variabe.
This confused users because most user doesn't know when text/binary protocol used.
go-mysql-driver 1.8 converts integer/float values into int64/double even in text protocol. This doesn't increase allocation compared to []byte and conversion cost is negilible.
New options start using the Functional Option Pattern to avoid increasing technical debt in the Config object. Future version may introduce Functional Option for existing options, but not for now.
We are pleased to announce the release of version 2.8.1. Featured are a handful of new areas of functionality and numerous bug fixes.
A summary of changes is available in the Release Notes. A full list of changes is available in the changelog.
Release Notes
The most notable changes in this release are:
Breaking Change
Upgrade requirements Go language version is 1.18 or later, for upgrade of dependency package golang.org/x/net
Change the data type for the HeaderFooterOptions structure fields AlignWithMargins and ScaleWithDoc as a pointer, resolve issue #1645
Remove unused exported data structure ShapeColor
Notable Features
Add new exported function SetCellUint, related issue #1681
Add new exported function GetPictureCells for get all picture cells, related issue #1218
Add new exported function GetConditionalStyle for get the conditional format style definition, related issue #1690
Add new exported function GetHeaderFooter for get the worksheet header and footer
Add new exported function AddSlicer for adding table and pivot table slicers
Add new exported function GetPivotTables for get pivot tables
Add new exported function DeletePivotTable for delete pivot table
Add a new Name field in the PivotTableOptions to support specify pivot table name
New support 7 formula functions: DBCS, SEARCH, SEARCHB, TEXT, TEXTAFTER, TEXTBEFORE and xlfn.ANCHORARRAY
Add export ChartLineType enumeration to specify the chart line type, related issue #1706
Add new Border field in the Chart data type to set the chart area border
Add new Type field in the ChartLine type to set the line type
Add new exported source relationship and namespace NameSpaceSpreadSheetXR10, ContentTypeSlicer, ContentTypeSlicerCache, and SourceRelationshipSlicer
Add new exported extended URI ExtURIPivotCacheDefinition
Allow dot character in the defined name, table name, or pivot table name
Keep all cells value in the table range when deleting table
Support format cell value with fraction number format code
Support delete image files from the workbook internally when deleting pictures to reduce generated workbook size and resolve potential security issues
Support set the height and width for the comment box, related issue #1688
Support update conditional formatting, data validations, defined names, drawing objects, formula reference and volatile dependencies on inserting/deleting columns/rows, related issues #1306 and #1615
Support 6 new kinds of conditional formatting types: text, blanks, no blanks, errors, no errors and time period
Support calculate formula with multiple dash arithmetic symbol
Support copy conditional format and data validation on duplicate row, related issue #1729
Support unset custom row height if the height value is -1 when using the SetRowHeight function
The SetRowHeight function will return an error if given an invalid row height value
The AddChart function support set the data labels position for the chart, related issue #1704
The AddChart function support set solid color or transparent fill for chart area, plot area, and maker, add a new field Fill in Chart, ChartPlotArea, and ChartMarker data type, related issue #1786
The AddChart function support set chart axis font family, size and strike style, related issue #1809
Add new field DataLabelPosition in the ChartSeries data type, support to sets the position of the chart series data label
Add new field BubbleSize in the Chart data type, support set the bubble size in all data series for the bubble chart or 3D bubble chart
Add new exported ChartDataLabelPositionType data type
The GetPictureCells and GetPictures function support get embedded cell images created by Kingsoft WPS™ Office, related issue #664
The SetConditionalFormat function support set conditional formatting with multiple cell ranges, related issue #1783
... (truncated)
Commits
688808b This closes #1819, formula calculation engine support array formulas
02b84a9 This closes #1820, converted styleFillVariants from slice to func (#1821)
ee2ef15 This closes #1815, cell value reading functions inherit the Options settings ...
9cbe3b6 This closes #1807, calculation engine support date and formula type cell (#1810)
bba155e This closes #1805, support set chart axis font family, size and strike style ...
a258e3d Fix CalcCellValue does not return raw value when enable RawCellValue (#1803)
The MongoDB Go Driver Team is pleased to release version 1.13.2 of the official Go driver.
Release Notes
This release restores the behavior that an empty map or slice is decoded as nil, and fixes a bug of connecting via UNIX sockets like mongodb://%2Ftmp%2Fmongodb-27017.sock.
This release also stops propagating passwords in error messages.
For a full list of tickets included in this release, please see the links below:
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the gomod-deps group with 11 updates:
1.62.0
1.62.1
1.32.0
1.33.0
1.5.1
1.5.4
1.25.4
1.25.7-0.20240204074919-46816ad31dde
1.2.1
1.2.2
1.7.1
1.8.0
0.0.21
0.0.56
0.0.37
0.0.38
1.10.1
1.11.0
2.8.0
2.8.1
1.12.0
1.14.0
Updates
google.golang.org/grpc
from 1.62.0 to 1.62.1Release notes
Sourced from google.golang.org/grpc's releases.
Commits
9952aa8
Change version to 1.62.1 (#7020)d7334c4
fix enabling compression by trimming whitespaces in accept encoding header (#...d076e14
rpc_util: Fix RecvBufferPool deactivation issues (#6766)9d981b0
cherry-pick #6997 to 1.62.x release branch (#6979) (#7018)7c4b553
Switch version to 1.62.1-dev (#6995)Updates
google.golang.org/protobuf
from 1.32.0 to 1.33.0Updates
gorm.io/driver/mysql
from 1.5.1 to 1.5.4Commits
b87f024
fix: migrator for mysql 5.6 (#141)e05761b
refactor: distinguish between Unique and UniqueIndex (#123)7cfeac9
ci: update go testing versions (#140)a6570f0
fix: tidb error log (#136)2a61ba0
When adding a new column to a table, include a primary key if the field is ei...386f545
Update README.md (#126)d04acd7
build(deps): bump actions/checkout from 3 to 4 (#133)48b6526
feat: reference for error codes added3f88908
feat: ErrForeignKeyViolated implemented91dcda2
ci: added build & test jobs (#121)Updates
gorm.io/gorm
from 1.25.4 to 1.25.7-0.20240204074919-46816ad31ddeCommits
Updates
github.com/alibabacloud-go/tea
from 1.2.1 to 1.2.2Release notes
Sourced from github.com/alibabacloud-go/tea's releases.
Commits
bb7ae5f
disable fail-fastc1f8e32
Bump github.com/alibabacloud-go/debugd755295
Bump golang.org/x/net from 0.11.0 to 0.20.0b81493c
fix: unescape unicode in sdk errorUpdates
github.com/go-sql-driver/mysql
from 1.7.1 to 1.8.0Release notes
Sourced from github.com/go-sql-driver/mysql's releases.
... (truncated)
Commits
33b7747
Add BeforeConnect callback to configuration object (#1469)6964272
Make TimeTruncate functional option (#1552)097fe6e
Update workflows (#1547)f019727
add TiDB support in README.md (#1333)743e263
IntroducetimeTruncate
parameter fortime.Time
arguments (#1541)c48c0e7
Fix unsigned int overflow (#1530)0004702
Parallelize test (#1525)d4517c5
Support ENUM and SET type in DatabaseTypeName() (#1520)2cdf624
Fix sql.RawBytes corruption issue (#1523)fc589cb
Add client_ed25519 authentication (#1518)Updates
github.com/OpenIMSDK/protocol
from 0.0.21 to 0.0.56Release notes
Sourced from github.com/OpenIMSDK/protocol's releases.
... (truncated)
Commits
db15b29
Merge pull request #66 from luhaoling/fix/background1e20678
fix: proto the msgV3.protodc24a9a
fix: fix the SearchMessage.msgType to searchMessage.contentType09cafc0
Merge pull request #65 from luhaoling/main148eedd
fix: fix the SingleMsgToUserPlatform6e6742b
feat: add GetUserTokenReq tokenbab90fc
feat: add getUserToken rpc and add ex field in MsgInfo8e26a62
feat: group online statusc65feab
feat: GetConversationNotReceiveMessageUserIDsReqddfe05c
feat: setUserStatusReqUpdates
github.com/OpenIMSDK/tools
from 0.0.37 to 0.0.38Release notes
Sourced from github.com/OpenIMSDK/tools's releases.
Commits
Updates
github.com/livekit/protocol
from 1.10.1 to 1.11.0Release notes
Sourced from github.com/livekit/protocol's releases.
Commits
16bebde
fix(deps): update module github.com/pion/webrtc/v3 to v3.2.27 (#600)611223e
Revert egress client jitter (#599)ee031bd
fix(deps): update go deps (#586)d89487f
More specific SIP call dispatch result codes. (#596)Updates
github.com/xuri/excelize/v2
from 2.8.0 to 2.8.1Release notes
Sourced from github.com/xuri/excelize/v2's releases.
... (truncated)
Commits
688808b
This closes #1819, formula calculation engine support array formulas02b84a9
This closes #1820, converted styleFillVariants from slice to func (#1821)ee2ef15
This closes #1815, cell value reading functions inherit the Options settings ...9cbe3b6
This closes #1807, calculation engine support date and formula type cell (#1810)bba155e
This closes #1805, support set chart axis font family, size and strike style ...a258e3d
Fix CalcCellValue does not return raw value when enable RawCellValue (#1803)99e91e1
This closes #1794, add new GetBaseColor function (#1798)9a68553
This closes #1792, support to update defined names reference when rename work...e4497c4
ref #65, new formula function: DBCS (#1791)9b07898
This closes #1789, delete VML shape on delete comment (#1790)Updates
go.mongodb.org/mongo-driver
from 1.12.0 to 1.14.0Release notes
Sourced from go.mongodb.org/mongo-driver's releases.
... (truncated)
Commits
1c38449
Update version to v1.14.09c6603d
GODRIVER-2335 Preemptively cancel in progress operations when SDAM heartbeats...556e2f2
GODRIVER-3046 Fix FaaS Test Configuration (#1558)9afea90
GODRIVER-2886 Provide more detailed deprecation notes for BSON codecs. (#1551)414aa9f
GODRIVER-3082 go mod tidy compilecheck package (#1557)5bd7ffb
Bump golang.org/x/crypto from 0.0.0-20220622213112-05595931fe9d to 0.17.0 in ...0026f0f
Bump golang.org/x/crypto from 0.0.0-20220622213112-05595931fe9d to 0.17.0 in ...2b1c4c7
Bump golang.org/x/crypto from 0.0.0-20220622213112-05595931fe9d to 0.17.0 in ...6e971fa
Bump golang.org/x/crypto from 0.0.0-20220622213112-05595931fe9d to 0.17.0 in ...63ef4ad
Bump golang.org/x/crypto from 0.0.0-20220622213112-05595931fe9d to 0.17.0 in ...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show