{"action":"closed","issue":{"url":"https://api.github.com/repos/jeremyevans/sequel/issues/1037","labels_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1037/labels{/name}","comments_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1037/comments","events_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1037/events","html_url":"https://github.com/jeremyevans/sequel/issues/1037","id":93397212,"number":1037,"title":"Table names with double underscore can't be created/queried with a Symbol","user":{"login":"elado","id":51488,"avatar_url":"https://avatars.githubusercontent.com/u/51488?v=3","gravatar_id":"","url":"https://api.github.com/users/elado","html_url":"https://github.com/elado","followers_url":"https://api.github.com/users/elado/followers","following_url":"https://api.github.com/users/elado/following{/other_user}","gists_url":"https://api.github.com/users/elado/gists{/gist_id}","starred_url":"https://api.github.com/users/elado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elado/subscriptions","organizations_url":"https://api.github.com/users/elado/orgs","repos_url":"https://api.github.com/users/elado/repos","events_url":"https://api.github.com/users/elado/events{/privacy}","received_events_url":"https://api.github.com/users/elado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T23:02:12Z","updated_at":"2015-07-06T23:26:28Z","closed_at":"2015-07-06T23:26:28Z","body":"Table creation:\r\n\r\n```ruby\r\n# Symbol name -- error\r\n> DB.create_table :hello__world\r\n# => ERROR -- : PG::InvalidSchemaName: ERROR:  schema \"hello\" does not exist: CREATE TABLE \"hello\".\"world\" ()\r\n\r\n# String name -- works\r\n> DB.create_table \"hello__world\"\r\n# => CREATE TABLE \"hello__world\" ()\r\n```\r\n\r\nTable model/query:\r\n\r\n```ruby\r\n# Symbol table name\r\nclass HelloWorld < Sequel::Model(:hello__world)\r\nend\r\n\r\nHelloWorld.all\r\n# => ERROR -- : PG::UndefinedTable: ERROR:  relation \"hello.world\" does not exist\r\n\r\n\r\n# String table name\r\nclass HelloWorld < Sequel::Model('hello__world')\r\nend\r\n# => Sequel::Error: Model.set_dataset takes one of the following classes as an argument: Symbol, LiteralString, SQL::Identifier, SQL::QualifiedIdentifier, SQL::AliasedExpression, Dataset\r\n\r\n# Identifier table name -- works\r\nclass HelloWorld < Sequel::Model(Sequel.identifier('hello__world'))\r\nend\r\n\r\nHelloWorld.all\r\n# => INFO -- SELECT * FROM \"hello__world\"\r\n```\r\n\r\nCan the `__` convention be turned off?\r\n"}}