You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"You asked to create a table with a datatype of length {length}({identifiableDatatype}) but you did not allocate an equal or greater number of anonymous identifier types (NumberOfCharactersToUseInAnonymousRepresentation + NumberOfIntegersToUseInAnonymousRepresentation={NumberOfCharactersToUseInAnonymousRepresentation+NumberOfIntegersToUseInAnonymousRepresentation})",
74
+
CheckResult.Warning));
75
+
}
76
+
77
+
varcon=forceConnection??server.GetConnection();//use the forced connection or open a new one
78
+
79
+
try
80
+
{
81
+
if(forceConnection==null)
82
+
con.Open();
83
+
}
84
+
catch(Exceptione)
85
+
{
86
+
notifier.OnCheckPerformed(newCheckEventArgs($"Could not connect to ano server {Server}",CheckResult.Fail,
87
+
e));
88
+
return;
89
+
}
90
+
91
+
//if table name is ANOChi there are 2 columns Chi and ANOChi in it
if(forceConnection==null)//if we opened this ourselves
122
+
con.Close();//shut it
123
+
}
124
+
catch(Exceptione)
125
+
{
126
+
notifier.OnCheckPerformed(
127
+
newCheckEventArgs(
128
+
$"Failed to successfully create the anonymous/identifier mapping Table in the ANO database on server {Server}",
129
+
CheckResult.Fail,e));
130
+
return;
131
+
}
132
+
}
133
+
134
+
try
135
+
{
136
+
if(forceTransaction==
137
+
null)//if there was no transaction then this has hit the LIVE ANO database and is for real, so save the ANOTable such that it is synchronized with reality
138
+
{
139
+
notifier.OnCheckPerformed(newCheckEventArgs("Saving state because table has been pushed",
140
+
CheckResult.Success));
141
+
/*SaveToDatabase*/
142
+
}
143
+
}
144
+
catch(Exceptione)
145
+
{
146
+
notifier.OnCheckPerformed(newCheckEventArgs(
147
+
"Failed to save state after table was successfully? pushed to ANO server",CheckResult.Fail,e));
$"Cannot delete ANOTable because it references {TableName} which is a table on server {Server} which contains rows, deleting this reference would leave that table as an orphan, we can only delete when there are 0 rows in the table");
0 commit comments