Skip to content

0.7.8 and 0.7.7 exception: pymysql.err.InternalError: Packet sequence number wrong - got 142 expected 1 #512

Description

@CarGod

code:

import pymysql.cursors

connection = pymysql.connect(host='localhost',
                             user='root',
                             password='123456',
                             db='wikiurl',
                             charset='utf8mb4')

try:
    with connection.cursor() as cursor:
        sql = "select urlname, urlhref from urls where id is not null"
        conut = cursor.execute(sql)
        print(conut)
finally:
    connection.close()

This code in 0.7.6 is OK, but in 0.7.7 or 0.7.8 is not ok.
I think is, id is not null in 0.7.7 is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions