ports/databases/mysql50-server/files/patch-sql_item.cc
Alex Dupre 25efd4f481 - tmpdir fix [1]
- add WITHOUT_THR_ALARM knob to reduce kernel contention [2]
  (use it only if you understand the drawback)

Submitted by:	stas [1], kris [2]
2007-10-08 08:30:57 +00:00

11 lines
352 B
C++

--- sql/item.cc.orig 2007-09-20 16:57:18.000000000 +0400
+++ sql/item.cc 2007-09-20 17:00:20.000000000 +0400
@@ -1716,6 +1716,8 @@
unsigned_flag=test(field_par->flags & UNSIGNED_FLAG);
collation.set(field_par->charset(), field_par->derivation());
fixed= 1;
+ if (field->table->s->tmp_table == SYSTEM_TMP_TABLE)
+ any_privileges= 0;
}