Closed NoToComments closed 4 years ago
I guess you're talking about the SQL mapper right? Can you provide a code sample?
Yeah its about the mapper.
Something like that?
$database = new \DB\SQL(
'sqlsrv:server=localhost,1433;database=testDB',
'sa',
'P@ssw0rd'
);
$example=new \DB\SQL\Mapper($database,'example');
$example->name="SpaceOps";
$example->save();
Error code
PDOStatement: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Cannot insert the value NULL into column 'id', table 'shortyTest.dbo.project'; column does not allow nulls. INSERT fails.
Can you please check latest commit https://github.com/bcosca/fatfree-core/commit/95d5f68aa4b8a7c23b3493bfdb8c02f275e4c0ec at master branch. I've just tested it with SQL Server 2017 myself now and it all works fine here.
please reopen if problem persists.
Hello I cant get fatfree working with sqlserver.
On Inserts it sends 0 as id to sqlserver. Instead of leaving the column out of the insert statement.
Current behavior
Wished behavior
Looks like https://github.com/bcosca/fatfree/issues/1192