Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] method id() has bug when insert multiple tables #871

Closed
out001a opened this issue Aug 29, 2019 · 2 comments
Closed

[BUG] method id() has bug when insert multiple tables #871

out001a opened this issue Aug 29, 2019 · 2 comments
Labels

Comments

@out001a
Copy link

out001a commented Aug 29, 2019

Information

  • Version of Medoo: latest
  • Type of Database (MySQL, MSSQL, SQLite...): MySQL
  • System (Liunx\Windows\Mac): Linux

Detail Code

$database->insert("account",  $row1);    // insert success
$id1 = $database->id();

$database->insert("table_not_exist",  $row2);    // insert fail
$id2 = $database->id();

Expected output
$id2 shoud be 0 or false, but actually its value is equal to $id1

@catfan catfan added the bug label Aug 29, 2019
@catfan
Copy link
Owner

catfan commented Aug 29, 2019

Good spot. It will be fixed.

@catfan
Copy link
Owner

catfan commented Oct 12, 2019

This bug have been fixed on v1.7.5.

@catfan catfan closed this as completed Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants