From 185542a5884e54634e8a9bddaf1823b04163a6d4 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 15 Jul 2013 23:45:04 +0800 Subject: [PATCH] fix test password of mysql --- mysql_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mysql_test.go b/mysql_test.go index 88a6af29..8e66b625 100644 --- a/mysql_test.go +++ b/mysql_test.go @@ -8,13 +8,18 @@ import ( var me Engine /* -CREATE DATABASE IF NOT EXISTS orm_test CHARACTER SET +CREATE DATABASE IF NOT EXISTS xorm_test CHARACTER SET utf8 COLLATE utf8_general_ci; */ func TestMysql(t *testing.T) { // You should drop all tables before executing this testing - me = Create("mysql", "root:@/xorm_test?charset=utf8") + engine, err := NewEngine("mysql", "root:@/xorm_test?charset=utf8") + if err != nil { + t.Error(err) + return + } + me = *engine me.ShowSQL = true directCreateTable(&me, t)