on 2020 Dec 18 4:49 AM
executing
call sa_reset_identity('tablename')
throws the error:
ERROR [HY000] [Sybase][ODBC Driver][SQL Anywhere]RAISERROR executed: invalid new_identity value
The used table has only one autoincrement column. If a new start value is explicitly provided it works.
Any idea, what's the problem with the default usage?
Request clarification before answering.
The new_identity value is not optional as currently implemented. The default should likely be 1 and not NULL as currently defined.
To workaround, please supply all parameters or include new_identity as in the following example:
call sa_reset_identity('tablename', new_identity=1 );
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have made a fix for this issue which will be available in 17.0 Build 6254 or newer. The fix will change the default to 0 making the next identity value 1. Further, only non-negative non-NULL values will be permitted.
User | Count |
---|---|
64 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.