~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/plugin.ini

  • Committer: Stewart Smith
  • Date: 2009-05-15 06:57:12 UTC
  • mto: (991.1.5 for-brian)
  • mto: This revision was merged to the branch mainline in revision 1022.
  • Revision ID: stewart@flamingspork.com-20090515065712-bmionylacjmexmmm
Make sql_mode=NO_AUTO_VALUE_ON_ZERO default for Drizzle.

Also fix DEFAULT keyword handling for auto-increment so that it defaults to
NULL and not 0 so that the following is valid and generates two auto-inc
values:

create table t1 (a int auto_increment primary key)
insert into t1 (a) values (default);
insert into t1 (a) values (default);

Important to note that 0 is no longer magic. So this gives you duplicate
primary key error:

insert into t1 (a) values(0);
insert into t1 (a) values(0);

as you've inserted the explicit value of 0 twice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[plugin]
2
 
title=User Locks.
3
 
description=Provides lock functions to users.
4
 
load_by_default=yes
5
 
sources= 
6
 
  barrier_dictionary.cc
7
 
  barriers.cc
8
 
  create_barrier.cc
9
 
  get_lock.cc
10
 
  get_locks.cc
11
 
  is_free_lock.cc
12
 
  is_used_lock.cc
13
 
  key.cc
14
 
  locks.cc
15
 
  module.cc
16
 
  release_barrier.cc
17
 
  release_lock.cc
18
 
  release_locks.cc
19
 
  release_wait.cc
20
 
  signal.cc
21
 
  user_locks_dictionary.cc
22
 
  wait.cc
23
 
  wait_for_lock.cc
24
 
  wait_until.cc
25
 
headers=
26
 
  barrier.h
27
 
  barrier_dictionary.h
28
 
  barrier_storage.h
29
 
  barriers.h
30
 
  create_barrier.h
31
 
  get_lock.h
32
 
  get_locks.h
33
 
  is_free_lock.h
34
 
  is_used_lock.h
35
 
  key.h
36
 
  lock_storage.h
37
 
  lock.h
38
 
  locks.h
39
 
  module.h
40
 
  observer.h
41
 
  release_barrier.h
42
 
  release_lock.h
43
 
  release_locks.h
44
 
  release_wait.h
45
 
  signal.h
46
 
  user_locks_dictionary.h
47
 
  wait.h
48
 
  wait_for_lock.h
49
 
  wait_until.h
50
 
static=yes