File tree 1 file changed +4
-18
lines changed 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ const (
39
39
// See the License for the specific language governing permissions and
40
40
// limitations under the License.
41
41
42
+ // Generated by generate_perror/main.go
42
43
package main
44
+
45
+ var MysqlErrNameToNum = map[string]int{
43
46
`
44
47
)
45
48
@@ -153,24 +156,7 @@ func main() {
153
156
}
154
157
defer f .Close ()
155
158
w := bufio .NewWriter (f )
156
- _ , err = w .WriteString (`// Copyright 2023 PingCAP, Inc.
157
- //
158
- // Licensed under the Apache License, Version 2.0 (the "License");
159
- // you may not use this file except in compliance with the License.
160
- // You may obtain a copy of the License at
161
- //
162
- // http://www.apache.org/licenses/LICENSE-2.0
163
- //
164
- // Unless required by applicable law or agreed to in writing, software
165
- // distributed under the License is distributed on an "AS IS" BASIS,
166
- // See the License for the specific language governing permissions and
167
- // limitations under the License.
168
-
169
- // Generated by generate_perror/main.go
170
- package main
171
-
172
- var MysqlErrNameToNum = map[string]int{
173
- ` )
159
+ _ , err = w .WriteString (fileHeader )
174
160
175
161
if err != nil {
176
162
log .Fatal (err )
You can’t perform that action at this time.
0 commit comments