{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/694","repository_url":"https://api.github.com/repos/Microsoft/msphpsql","labels_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/694/comments","events_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/694/events","html_url":"https://github.com/Microsoft/msphpsql/issues/694","id":298585501,"number":694,"title":"Issue with primary key on 5.2.0RC1","user":{"login":"Pindzia","id":9035638,"avatar_url":"https://avatars2.githubusercontent.com/u/9035638?v=4","gravatar_id":"","url":"https://api.github.com/users/Pindzia","html_url":"https://github.com/Pindzia","followers_url":"https://api.github.com/users/Pindzia/followers","following_url":"https://api.github.com/users/Pindzia/following{/other_user}","gists_url":"https://api.github.com/users/Pindzia/gists{/gist_id}","starred_url":"https://api.github.com/users/Pindzia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pindzia/subscriptions","organizations_url":"https://api.github.com/users/Pindzia/orgs","repos_url":"https://api.github.com/users/Pindzia/repos","events_url":"https://api.github.com/users/Pindzia/events{/privacy}","received_events_url":"https://api.github.com/users/Pindzia/received_events","type":"User","site_admin":false},"labels":[{"id":800925993,"url":"https://api.github.com/repos/Microsoft/msphpsql/labels/by%20design","name":"by design","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-20T13:01:39Z","updated_at":"2018-02-23T12:59:53Z","closed_at":"2018-02-23T12:59:53Z","author_association":"NONE","body":" +## Driver version or file name\r\n +Please tell us what the PHP driver version or file name is.\r\n +sqlsrv and pdo_sqlsrv 5.2.0RC1\r\n +## SQL Server version\r\n +Please tell us what the SQL Server version is.\r\n +SQL Server 11\r\n +## Client operating system\r\n +Please tell us what oprating system the client program is running on.\r\n +Ubuntu16.04\r\n +## PHP version\r\n +Please tell us which version of PHP you are running.\r\n +Version => 7.0.27-1\r\n +## Microsoft ODBC Driver version\r\n +Please tell us which version of the Microsoft ODBC Driver you are using.\r\n +msodbcsql_13.1.9.2-1\r\n +## Table schema\r\n +Please tell us the table schema\r\n +\r\n +## Problem description\r\n +Please share more details with us.\r\n +Im using driver with Yii to manage connection between php and sqlsrv\r\n and after i move driver from 4.3.0 to 5.2.0RC1\r\nSaving model drops Primary key during inserting new record to table\r\n +## Expected behavior and actual behavior\r\n +Please tell us what should happen and what happened instead\r\nNormally as i used to in 4.3.0 that after saving new model I've had access to primary key\r\nafter upgrading to new versions of drivers i don t have access to PK\r\n +\r\n +## Repro code\r\n +Please share repro code with us, or tell us how to reproduce the issue.\r\nif($model->save)\r\n{\r\n    $id = $model->id;// it s empty here but it shouldn't\r\n}\r\n"}}
{"actor":{"display_login":"Pindzia"}}