你的SQL语句写成什么样了呀
insert into test(name) values('\'); 是没有问题的
应该是你的程序上传入SQL时的问题吧