| 4217 | return nil |
| 4218 | } |
| 4219 | func skipSql(data []byte) (n int, err error) { |
| 4220 | l := len(data) |
| 4221 | iNdEx := 0 |
| 4222 | for iNdEx < l { |
| 4223 | var wire uint64 |
| 4224 | for shift := uint(0); ; shift += 7 { |
| 4225 | if shift >= 64 { |
| 4226 | return 0, ErrIntOverflowSql |
| 4227 | } |
| 4228 | if iNdEx >= l { |
| 4229 | return 0, io.ErrUnexpectedEOF |
| 4230 | } |
| 4231 | b := data[iNdEx] |
| 4232 | iNdEx++ |
| 4233 | wire |= (uint64(b) & 0x7F) << shift |
| 4234 | if b < 0x80 { |
| 4235 | break |
| 4236 | } |
| 4237 | } |
| 4238 | wireType := int(wire & 0x7) |
| 4239 | switch wireType { |
| 4240 | case 0: |
| 4241 | for shift := uint(0); ; shift += 7 { |
| 4242 | if shift >= 64 { |
| 4243 | return 0, ErrIntOverflowSql |
| 4244 | } |
| 4245 | if iNdEx >= l { |
| 4246 | return 0, io.ErrUnexpectedEOF |
| 4247 | } |
| 4248 | iNdEx++ |
| 4249 | if data[iNdEx-1] < 0x80 { |
| 4250 | break |
| 4251 | } |
| 4252 | } |
| 4253 | return iNdEx, nil |
| 4254 | case 1: |
| 4255 | iNdEx += 8 |
| 4256 | return iNdEx, nil |
| 4257 | case 2: |
| 4258 | var length int |
| 4259 | for shift := uint(0); ; shift += 7 { |
| 4260 | if shift >= 64 { |
| 4261 | return 0, ErrIntOverflowSql |
| 4262 | } |
| 4263 | if iNdEx >= l { |
| 4264 | return 0, io.ErrUnexpectedEOF |
| 4265 | } |
| 4266 | b := data[iNdEx] |
| 4267 | iNdEx++ |
| 4268 | length |= (int(b) & 0x7F) << shift |
| 4269 | if b < 0x80 { |
| 4270 | break |
| 4271 | } |
| 4272 | } |
| 4273 | iNdEx += length |
| 4274 | if length < 0 { |
| 4275 | return 0, ErrInvalidLengthSql |
| 4276 | } |