| 1905 | return nil |
| 1906 | } |
| 1907 | func (m *SqlSelectPb) Unmarshal(data []byte) error { |
| 1908 | var hasFields [1]uint64 |
| 1909 | l := len(data) |
| 1910 | iNdEx := 0 |
| 1911 | for iNdEx < l { |
| 1912 | preIndex := iNdEx |
| 1913 | var wire uint64 |
| 1914 | for shift := uint(0); ; shift += 7 { |
| 1915 | if shift >= 64 { |
| 1916 | return ErrIntOverflowSql |
| 1917 | } |
| 1918 | if iNdEx >= l { |
| 1919 | return io.ErrUnexpectedEOF |
| 1920 | } |
| 1921 | b := data[iNdEx] |
| 1922 | iNdEx++ |
| 1923 | wire |= (uint64(b) & 0x7F) << shift |
| 1924 | if b < 0x80 { |
| 1925 | break |
| 1926 | } |
| 1927 | } |
| 1928 | fieldNum := int32(wire >> 3) |
| 1929 | wireType := int(wire & 0x7) |
| 1930 | if wireType == 4 { |
| 1931 | return fmt.Errorf("proto: SqlSelectPb: wiretype end group for non-group") |
| 1932 | } |
| 1933 | if fieldNum <= 0 { |
| 1934 | return fmt.Errorf("proto: SqlSelectPb: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1935 | } |
| 1936 | switch fieldNum { |
| 1937 | case 1: |
| 1938 | if wireType != 2 { |
| 1939 | return fmt.Errorf("proto: wrong wireType = %d for field Db", wireType) |
| 1940 | } |
| 1941 | var stringLen uint64 |
| 1942 | for shift := uint(0); ; shift += 7 { |
| 1943 | if shift >= 64 { |
| 1944 | return ErrIntOverflowSql |
| 1945 | } |
| 1946 | if iNdEx >= l { |
| 1947 | return io.ErrUnexpectedEOF |
| 1948 | } |
| 1949 | b := data[iNdEx] |
| 1950 | iNdEx++ |
| 1951 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1952 | if b < 0x80 { |
| 1953 | break |
| 1954 | } |
| 1955 | } |
| 1956 | intStringLen := int(stringLen) |
| 1957 | if intStringLen < 0 { |
| 1958 | return ErrInvalidLengthSql |
| 1959 | } |
| 1960 | postIndex := iNdEx + intStringLen |
| 1961 | if postIndex > l { |
| 1962 | return io.ErrUnexpectedEOF |
| 1963 | } |
| 1964 | m.Db = string(data[iNdEx:postIndex]) |