Commit e399d201 authored by 247321453's avatar 247321453

1.3.4.0

parent a83d0803
......@@ -58,10 +58,19 @@ public static bool Create(string Db)
SQLiteConnection.CreateFile(Db);
Command(Db, defaultTableSQL);
}
catch(Exception exc)
catch
{
return false;
}
return true;
}
public static bool CheckTable(string db)
{
try{
Command(db, defaultTableSQL);
}
catch
{
File.AppendAllText("System.Data.SQLite.log", exc.Source+"\n"+
exc.TargetSite+"\n"+exc.Message+"\n"+exc.ToString());
return false;
}
return true;
......@@ -96,10 +105,8 @@ public static int Command(string DB, params string[] SQLs)
}
}
}
catch(Exception exc)
catch
{
File.AppendAllText("System.Data.SQLite.log", exc.Source+"\n"+
exc.TargetSite+"\n"+exc.Message+"\n"+exc.ToString());
trans.Rollback();
result = -1;
}
......@@ -116,6 +123,7 @@ public static int Command(string DB, params string[] SQLs)
#endregion
#region 数据读取
#region 根据SQL读取
static Card ReadCard(SQLiteDataReader reader,bool reNewLine)
{
......
......@@ -567,6 +567,7 @@ public bool Open(string cdbFile)
}
SetCDB(cdbFile);
cardlist.Clear();
DataBase.CheckTable(cdbFile);
SetCards(DataBase.Read(cdbFile,true,""),false);
return true;
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.3.3.0")]
[assembly: AssemblyVersion("1.3.4.0")]
[DataEditorX]1.3.3.0[DataEditorX]
[DataEditorX]1.3.4.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★卡片复制:
替换复制:如果存在卡片,就用最新的替换
......@@ -26,6 +26,8 @@ Email:247321453@qq.com
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.3.4.0
支持 新建文本文档.txt 直接改名 新建文本文档.cdb
1.3.3.0
修复打开方式
1.3.2.2
......
No preview for this file type
[DataEditorX]1.3.3.0[DataEditorX]
[DataEditorX]1.3.4.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★卡片复制:
替换复制:如果存在卡片,就用最新的替换
......@@ -26,6 +26,8 @@ Email:247321453@qq.com
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.3.4.0
支持 新建文本文档.txt 直接改名 新建文本文档.cdb
1.3.3.0
修复打开方式
1.3.2.2
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment