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

PRISMADB DECRYPT not working for MySQL Database #19

Open
saklanipankaj opened this issue Jun 27, 2019 · 4 comments
Open

PRISMADB DECRYPT not working for MySQL Database #19

saklanipankaj opened this issue Jun 27, 2019 · 4 comments
Labels

Comments

@saklanipankaj
Copy link

saklanipankaj commented Jun 27, 2019

PRISMADB DECRYPT t1.a;
SHOW COLUMNS FROM t1;
> Query OK, 0 rows affected (1.00 sec)

> +-------+--------------+------+------+-------------------+-------+---------------------------------+
> | Field | Type         | Null | Key  | Default           | Extra | Encryption                      |
> +-------+--------------+------+------+-------------------+-------+---------------------------------+
> | a     | double       | YES  |      | NULL              |       | Addition, Multiplication, Range |
> | b     | int          | YES  |      | NULL              |       | Addition, Multiplication, Range |
> | c     | varchar(100) | YES  |      | NULL              |       | Store, Search                   |
> | d     | timestamp    | NO   |      | CURRENT_TIMESTAMP |       | None                            |
> +-------+--------------+------+------+-------------------+-------+---------------------------------+
> 4 rows in set (0.01 sec)

There does not seem to be any change in the Encryption of the column that should no longer be encrypted any longer.

@cheziyi
Copy link
Member

cheziyi commented Jun 27, 2019

What was the result of the command PRISMADB DECRYPT t1.a STATUS?

@saklanipankaj
Copy link
Author

saklanipankaj commented Jun 27, 2019

+---------------------------+--------+------------------+-----------------+-----------------------------------------------------------------------------------------+
| Latest Query              | Status | Overall Progress | Column Progress | Error Message                                                                           |
+---------------------------+--------+------------------+-----------------+-----------------------------------------------------------------------------------------+
| PRISMADB DECRYPT `t1`.`a` | Error  | 0/1              | NONE            | An error has occured while modifying `t1`.`a` and any changes to it have been reverted. |
+---------------------------+--------+------------------+-----------------+-----------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

@cheziyi
Copy link
Member

cheziyi commented Jun 27, 2019

Will investigate.

@cheziyi cheziyi added the bug label Jun 28, 2019
@cheziyi
Copy link
Member

cheziyi commented Jul 2, 2019

I am unable to repro this issue, what is the data in the table? Alternatively, you may add the ConsoleVerbose environment variable when you run the image, and set the value to 79: https://github.com/PrismaDB/PrismaDB/wiki/Configuration-Options#logging

With this, you can see the full error message, and post it here.

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