2016年3月18日 星期五

Golang的 Cookie 操作

在 GoLang 出 1.1 版以前,Go lang 雖然已經有定義 type CookieJar interface 了,但是只有 interface,那時候要使用 cookie 還要自己定義 [1]
當時雖然有人有開源自己寫的 cookie jar,不過在 1.1 出來後也不會用到,現在我要找也找不到了……

2016年3月9日 星期三

You can't specify target table '資料庫表名' for update in FROM clause

這是最近使用 Hibernate 時遇到的錯誤訊息
查了一下,結果這是 MySQL 特有的問題。說是不能夠在變更資料時 select 同一個 table……