{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/850","labels_url":"https://api.github.com/repos/npgsql/npgsql/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/npgsql/issues/850/comments","events_url":"https://api.github.com/repos/npgsql/npgsql/issues/850/events","html_url":"https://github.com/npgsql/npgsql/issues/850","id":114431540,"number":850,"title":"Creation of initial DB does not work if a connection is passed to UseNpgsql instead of connectionstring","user":{"login":"glenngbg","id":11314910,"avatar_url":"https://avatars.githubusercontent.com/u/11314910?v=3","gravatar_id":"","url":"https://api.github.com/users/glenngbg","html_url":"https://github.com/glenngbg","followers_url":"https://api.github.com/users/glenngbg/followers","following_url":"https://api.github.com/users/glenngbg/following{/other_user}","gists_url":"https://api.github.com/users/glenngbg/gists{/gist_id}","starred_url":"https://api.github.com/users/glenngbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenngbg/subscriptions","organizations_url":"https://api.github.com/users/glenngbg/orgs","repos_url":"https://api.github.com/users/glenngbg/repos","events_url":"https://api.github.com/users/glenngbg/events{/privacy}","received_events_url":"https://api.github.com/users/glenngbg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npgsql/npgsql/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/npgsql/npgsql/labels/ef7","name":"ef7","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/npgsql/npgsql/milestones/20","html_url":"https://github.com/npgsql/npgsql/milestones/EF7-rc1","labels_url":"https://api.github.com/repos/npgsql/npgsql/milestones/20/labels","id":1379967,"number":20,"title":"EF7-rc1","description":"","creator":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-10-27T17:45:38Z","updated_at":"2015-10-31T20:43:13Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-31T20:18:45Z","updated_at":"2015-10-31T20:48:29Z","closed_at":null,"body":"Works fine\r\n`optionsBuilder.UseNpgsql(\"Server=host.com;User Id=postgres;Password=pass;Database=dbname;\");`\r\n\r\nError if db doesn´t exists\r\n\r\n    var builder = new NpgsqlConnectionStringBuilder();\r\n    builder.Host = \"host.com\";\r\n    builder.Username = \"postgres\";\r\n    builder.Password = \"pass!\";\r\n    builder.Database = \"name\";\r\n    var conn = new NpgsqlConnection(builder);\r\n    optionsBuilder.UseNpgsql(conn);\r\n\r\nErrormsg.\r\nSystem.Exception: No password has been provided but the backend requires one (in MD5)"},"comment":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/comments/152771367","html_url":"https://github.com/npgsql/npgsql/issues/850#issuecomment-152771367","issue_url":"https://api.github.com/repos/npgsql/npgsql/issues/850","id":152771367,"user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T20:48:29Z","updated_at":"2015-10-31T20:48:29Z","body":"Somewhere internally EF7 apparently tried to extra the connection string from the already-open connection, but as PersistSecurityInfo is false it's getting it without the password. It should probably be cloning the connection instead..."}}