From 9b0e30920304f183053ce4021f12eaa0bfbd2155 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 24 Jan 2015 20:54:48 +0000 Subject: [PATCH] Sql: Scrip fixed begin/end issue git-svn-id: svn://ultimatepp.org/upp/trunk@8092 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Sql/Script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Sql/Script.cpp b/uppsrc/Sql/Script.cpp index 4392fa924..0c8131dc9 100644 --- a/uppsrc/Sql/Script.cpp +++ b/uppsrc/Sql/Script.cpp @@ -27,9 +27,9 @@ bool SqlPerformScript(SqlSession& session, Stream& script, bool esc = false; while(!script.IsEof()) { int c = script.Term(); - if(IsAlpha(c)) { + if(IsAlpha(c) || c == '_') { String id; - while(IsAlpha(script.Term())) { + while(IsAlNum(script.Term()) || script.Term() == '_') { c = script.Get(); stmt.Cat(c); id.Cat(ToUpper(c));