Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql: Unhandled exception: "unpack requires a buffer of 4 bytes" #335

Closed
raphaelquati opened this issue Oct 15, 2022 · 3 comments
Closed
Assignees
Labels

Comments

@raphaelquati
Copy link

Azure Data Studio: 1.40.0-insider
Mysql Plugin: 0.2.2
pgtoolsservice: 1.6.1
MySql Server: 5.7.40 (Docker)

Select * from T1 gives the error:

[Error - 00:11:28] Request query/subset failed.
  Message: Unhandled exception while handling request method query/subset: "unpack requires a buffer of 4 bytes"
  Code: -32603 

The table structure:

CREATE TABLE `T1` (
  `c1` int(11) NOT NULL AUTO_INCREMENT,
  `c2` longtext,
  `c3` tinyint(1) NOT NULL,
  `c4` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `c5` tinyint(1) NOT NULL,
  `c6` int(11) NOT NULL,
  `c7` longtext,
  `c8` longtext,
  `c9` longtext,
  `c10` longtext,
  `c11` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `c12` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `c13` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `c14` varchar(100) DEFAULT NULL,
  `c15` bit(1) NOT NULL DEFAULT b'0',
  PRIMARY KEY (`c1`)
) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=latin1
@rishky-msft
Copy link
Collaborator

Hi @raphaelquati

You can try this vsix on windows and confirm if the issue is fixed for you.
https://github.com/microsoft/azuredatastudio-mysql/releases/download/v0.2.3-alpha.1/azuredatastudio-mysql-0.2.3-alpha.1.vsix

@rishky-msft rishky-msft self-assigned this Oct 21, 2022
@raphaelquati
Copy link
Author

raphaelquati commented Oct 21, 2022

Hi @rishky-msft ,

This version fix the error. Thanks!

@rishky-msft
Copy link
Collaborator

The changes will be available in the next release 0.2.3 of
https://github.com/microsoft/azuredatastudio-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants