Exemplo n.º 1
0
        public override IDatabaseObject EscapeStringValues(IDatabaseObject query) {
            foreach (StringValue item in query.DescendantsAndSelf<StringValue>()) {
                item.Data = MySqlHelper.EscapeString(item.Data);
            }

            return query;
        }
Exemplo n.º 2
0
        public override IDatabaseObject EscapeStringValues(IDatabaseObject query) {
            foreach (StringValue item in query.DescendantsAndSelf<StringValue>()) {
                // todo is there something in the SQLite library that does the same?
                // without googling I would imagine this would have some obscure way to ruin data.
                item.Data = MySql.Data.MySqlClient.MySqlHelper.EscapeString(item.Data);
            }

            return query;
        }