Skip to content

Commit

Permalink
Changed decode41 and reset ci-mariadb-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
svats0001 authored and jchrys committed Jan 11, 2025
1 parent 9aaa2b7 commit 72aa2a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-mariadb-intergration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
mariadb-version: [ 11.5.2 ]
mariadb-version: [ 10.0, 10.1, 10.2.15, 10.2, 10.3.7, 10.3, 10.5.1, 10.5, 10.6, 10.11 ]
name: Integration test with MariaDB ${{ matrix.mariadb-version }}
steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,13 @@ private static DefinitionMetadataMessage decode41(ByteBuf buf, ConnectionContext

String extendTypeInfo = null;
if (context.getCapability().isMariaDb() && context.getCapability().isExtendedTypeInfo()) {
buf.readUnsignedByte();
extendTypeInfo = readVarIntSizedString(buf, charset);
buf.markReaderIndex();
short extendedTypeInfoDataType = buf.readUnsignedByte();
if (extendedTypeInfoDataType == 0 || extendedTypeInfoDataType == 1) {
extendTypeInfo = readVarIntSizedString(buf, charset);
} else {
buf.resetReaderIndex();
}
}

// Skip constant 0x0c encoded by var integer
Expand Down

0 comments on commit 72aa2a0

Please sign in to comment.