Skip to content

Commit a4a888f

Browse files
committed
Remove MySQL8-style obsolete markers
1 parent 17d0cd7 commit a4a888f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/generate-error-constants.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ function extractMySqlVersion(srcDir) {
160160
function fixupCode(code) {
161161
return code
162162
// remove obsolete markers
163-
.replace('ER_OBSOLETE_', 'ER_')
163+
.replace(/^OBSOLETE_/, '')
164+
.replace(/^ER_OBSOLETE_/, 'ER_')
164165
// remove unused markers
165166
.replace(/(?:_OLD)?_+UNUSED$/, '');
166167
}

0 commit comments

Comments
 (0)