Closed saklanipankaj closed 5 years ago
Will investigate
There is an error in the query provided:
ALTER TABLE t3 ALTER COLUMN
a INT (MULTIPLICATION, ADDITION, SEARCH, STORE, RANGE) NULL;
It is missing the ENCRYPTED FOR
keywords, the correct syntax is:
ALTER TABLE t3 ALTER COLUMN
a INT ENCRYPTED FOR (MULTIPLICATION, ADDITION, SEARCH, STORE, RANGE) NULL;
This issue is now closed.
Column a is already an ENCRYPTED COLUMN that is defined as NOT NULL, the attempt of the query was to change the NOT NULL to NULL. An Error statement is returned advising to use the Native PRISMADB ENCRYPT or PRISMADB DECRYPT functions. This is an error as the native functions are not meant to modify columns.