dblayer: return the primarykey value after an insert. If it is not an autoincrement, return the provided value

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3922 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-09-05 09:00:51 +00:00
parent b0d215da1b
commit 0ddcff8507
3 changed files with 12 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ class test_dblayer_{ENGINE} extends PHPUnit_Framework_TestCase
"where"=>"\$'\"",
"with space"=>"with space"));
// SQLite start at 1, MySQL start at 0...
$this->assertLessThanOrEqual ($res, 1);
$this->assertSame ($res, "gr ou\"p");
}
public function test_read1 ()