Skip to content

execute_sql_string() will be suspend when there's an error in executing sqlString like primary key conflict #133

Description

@zhaomingminghit

sqlString like below and sansTran=False:
insert into table1 values(xxx);insert into table2 values(xxx);
and there's an primary key conflict error when running 'insert into table2 values(xxx)'
then, execute_sql_string() will be suspend after log 'Executing : Execute SQL String | xxxxxx'

Activity

  1. zhaomingminghit commented on Nov 4, 2020

    @zhaomingminghit
    Author

    script like below and version=1.2.4
    Connect_To_Database_Using_Custom_Params pymysql db='xxx'...
    execute_sql_string insert into table1 values(xxx);insert into table2 values(xxx);
    Disconnect_from_database

    if only run execute_sql_string insert into table2 values(xxx); the primary key conflict error will be displayed normally

  2. jerry57 commented on Dec 11, 2020

    @jerry57
    Collaborator

    What happens if you try:

    execute_sql_string begin; insert into table1 values(xxx);insert into table2 values(xxx); end;

  3. zhaomingminghit commented on Jan 15, 2021

    @zhaomingminghit
    Author

    What happens if you try:

    execute_sql_string begin; insert into table1 values(xxx);insert into table2 values(xxx); end;

    it will also suspend when i run "execute_sql_string begin; insert into table1 values(xxx);insert into table2 values(xxx); end;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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