Beispiel #1
0
        public void UpdateData(MultiTableUpdateScript script, LinkedDatabaseInfo linkedInfo)
        {
            if (script == null)
            {
                return;
            }
            string linkedInfoStr = linkedInfo != null?linkedInfo.ToString() : "";

            int updrows = 0, updflds = 0;

            foreach (var upd in script.Updates)
            {
                Put("^update %s%f ^set ", linkedInfoStr, upd.Table);
                for (int i = 0; i < upd.Columns.Length; i++)
                {
                    if (i > 0)
                    {
                        Put(", ");
                    }
                    Put("%i=%v", upd.Columns[i], upd.Values[i]);
                }
                Where(upd.Table, upd.CondCols, upd.CondValues);
                Put(";&n");
                updrows++;
                updflds += upd.Values.Length;
            }
        }
Beispiel #2
0
 public void UpdateData(MultiTableUpdateScript script, LinkedDatabaseInfo linkedInfo)
 {
 }