{"action":"created","issue":{"url":"https://api.github.com/repos/Dreampie/Resty/issues/47","repository_url":"https://api.github.com/repos/Dreampie/Resty","labels_url":"https://api.github.com/repos/Dreampie/Resty/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Dreampie/Resty/issues/47/comments","events_url":"https://api.github.com/repos/Dreampie/Resty/issues/47/events","html_url":"https://github.com/Dreampie/Resty/issues/47","id":188967985,"number":47,"title":"动态创建的表，必须重启程序，才能对数据进行Save操作","user":{"login":"ptlinyi","id":10378951,"avatar_url":"https://avatars.githubusercontent.com/u/10378951?v=3","gravatar_id":"","url":"https://api.github.com/users/ptlinyi","html_url":"https://github.com/ptlinyi","followers_url":"https://api.github.com/users/ptlinyi/followers","following_url":"https://api.github.com/users/ptlinyi/following{/other_user}","gists_url":"https://api.github.com/users/ptlinyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ptlinyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptlinyi/subscriptions","organizations_url":"https://api.github.com/users/ptlinyi/orgs","repos_url":"https://api.github.com/users/ptlinyi/repos","events_url":"https://api.github.com/users/ptlinyi/events{/privacy}","received_events_url":"https://api.github.com/users/ptlinyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-13T12:38:10Z","updated_at":"2016-11-23T07:19:08Z","closed_at":null,"body":"创建表是用：\r\nRecord rdo = new  Record();\r\nrdo.execute(\"create table ......\");\r\n\r\n之后执行查询没问题，但一旦要执行record.Save就出问题了，提示“he attribute name is not exists: fieldname\"\r\n经过调试，发现有TableMeta,但其中的columns的size等于零，也就是没有取到字段！\r\n\r\n看看是否能够在发现columns没内容时，自动重取TableMeta，或者把BuildTableMeta的方法提供出来，让我们在外面可以强制重新获取字段内容。\r\n\r\n谢谢！"},"comment":{"url":"https://api.github.com/repos/Dreampie/Resty/issues/comments/262447508","html_url":"https://github.com/Dreampie/Resty/issues/47#issuecomment-262447508","issue_url":"https://api.github.com/repos/Dreampie/Resty/issues/47","id":262447508,"user":{"login":"Dreampie","id":3667080,"avatar_url":"https://avatars.githubusercontent.com/u/3667080?v=3","gravatar_id":"","url":"https://api.github.com/users/Dreampie","html_url":"https://github.com/Dreampie","followers_url":"https://api.github.com/users/Dreampie/followers","following_url":"https://api.github.com/users/Dreampie/following{/other_user}","gists_url":"https://api.github.com/users/Dreampie/gists{/gist_id}","starred_url":"https://api.github.com/users/Dreampie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dreampie/subscriptions","organizations_url":"https://api.github.com/users/Dreampie/orgs","repos_url":"https://api.github.com/users/Dreampie/repos","events_url":"https://api.github.com/users/Dreampie/events{/privacy}","received_events_url":"https://api.github.com/users/Dreampie/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T07:19:08Z","updated_at":"2016-11-23T07:19:08Z","body":"即使分成两个测试方法\r\n```java\r\nprivate String tableName = \"tst_\" + new Date().getTime();\r\n\r\n  @Before\r\n  public void setUp() throws Exception {\r\n    ActiveRecord.init();\r\n  }\r\n\r\n\r\n  @Test\r\n  public void testTable() {\r\n    Record recordDAO = new Record();\r\n    recordDAO.execute(\"CREATE TABLE \" + tableName + \"(id INT NOT NULL AUTO_INCREMENT,name VARCHAR(100) NOT NULL,PRIMARY KEY(id));\");\r\n  }\r\n\r\n\r\n  @Test\r\n  public void testColumn(){\r\n    Record tstDAO = new Record(new TableSetting(\"tst_1479883701631\"));\r\n    Iterator iterator = tstDAO.getTableMeta().getColumnMetadata().values().iterator();\r\n    while (iterator.hasNext()) {\r\n      System.out.println(iterator.next().toString());\r\n    }\r\n  }\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/3667080/20553513/2659ab8c-b190-11e6-881a-091b59fd52d8.png)\r\n\r\n"}}
{"actor":{"display_login":"Dreampie"}}