diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-03-31 18:40:46 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-03-31 18:40:46 (GMT) |
commit | fdd96c527de9e5987c1f8592d1751c3bdc31c9c8 (patch) | |
tree | a33c1692aa21e8435b727fee58dbacab389e141c /rhnop-server/rddb.lua | |
parent | 8b055af834bb6de93519bbb0bff776ebb7fffe73 (diff) |
fixed utf-8 @ rddb
switched to bigint for timestamp
Diffstat (limited to 'rhnop-server/rddb.lua')
-rw-r--r-- | rhnop-server/rddb.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rhnop-server/rddb.lua b/rhnop-server/rddb.lua index c8037a9..f1cc656 100644 --- a/rhnop-server/rddb.lua +++ b/rhnop-server/rddb.lua @@ -38,11 +38,16 @@ function rddb:init() return nil, err end + local ret, err = self.con:execute("SET CHARACTER SET utf8") + if ret == nil then + return nil, err + end + return true end function rddb:getCartInfo(cartnum) - local cur, err = self.con:execute("select TITLE,ARTIST,ALBUM from CART where NUMBER = " .. self.con:escape(cartnum)); + local cur, err = self.con:execute("select TITLE,ARTIST,ALBUM from CART where NUMBER = " .. self.con:escape(cartnum)) if cur == nil then return nil, err end |