{"action":"created","issue":{"url":"https://api.github.com/repos/agershun/alasql/issues/75","labels_url":"https://api.github.com/repos/agershun/alasql/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/agershun/alasql/issues/75/comments","events_url":"https://api.github.com/repos/agershun/alasql/issues/75/events","html_url":"https://github.com/agershun/alasql/issues/75","id":59776416,"number":75,"title":"UNION error when using same columns","user":{"login":"mathiasrw","id":1063454,"avatar_url":"https://avatars.githubusercontent.com/u/1063454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasrw","html_url":"https://github.com/mathiasrw","followers_url":"https://api.github.com/users/mathiasrw/followers","following_url":"https://api.github.com/users/mathiasrw/following{/other_user}","gists_url":"https://api.github.com/users/mathiasrw/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasrw/subscriptions","organizations_url":"https://api.github.com/users/mathiasrw/orgs","repos_url":"https://api.github.com/users/mathiasrw/repos","events_url":"https://api.github.com/users/mathiasrw/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasrw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T10:15:26Z","updated_at":"2015-03-04T10:19:38Z","closed_at":"2015-03-04T10:19:38Z","body":"When I UNION a table I expect that what I select from the second table to be unioned with the first table based on the order \r\n\r\n```\r\nCREATE TABLE t1(a int,b int); \r\nINSERT INTO t1 VALUES(1,2); \r\nSELECT a, b FROM t1 UNION  SELECT b, a FROM t1;\r\n```\r\n\r\nin http://alasql.org/console/ I would expect \r\n\r\n```\r\n#\ta\tb\t\r\n1\t1\t2\r\n2\t2\t1\r\n```\r\n\r\nbut I get \r\n\r\n```\r\n#\tb\ta\r\n1\t2\t1\r\n```\r\n\r\nThe issue can also be seen for statements like\r\n\r\n```SELECT 1, 2 UNION SELECT 3, 4;```\r\n"},"comment":{"url":"https://api.github.com/repos/agershun/alasql/issues/comments/77130211","html_url":"https://github.com/agershun/alasql/issues/75#issuecomment-77130211","issue_url":"https://api.github.com/repos/agershun/alasql/issues/75","id":77130211,"user":{"login":"mathiasrw","id":1063454,"avatar_url":"https://avatars.githubusercontent.com/u/1063454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasrw","html_url":"https://github.com/mathiasrw","followers_url":"https://api.github.com/users/mathiasrw/followers","following_url":"https://api.github.com/users/mathiasrw/following{/other_user}","gists_url":"https://api.github.com/users/mathiasrw/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasrw/subscriptions","organizations_url":"https://api.github.com/users/mathiasrw/orgs","repos_url":"https://api.github.com/users/mathiasrw/repos","events_url":"https://api.github.com/users/mathiasrw/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasrw/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T10:19:38Z","updated_at":"2015-03-04T10:19:38Z","body":"This statement is more to the point:\r\n\r\n\r\n\r\ngives me \r\n\r\n```\r\n"}}