summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb_sys_vars/include/correctboolvalue.inc
blob: f675aec19f98e93d804ec3ce0657e7f9beff7aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##
# $input the value of a boolean type
# $output the value of int type
##
--let $int_value=$value
if ($value==on)
{
  --let $int_value=1
}

if ($value==off)
{
  --let $int_value=0
}

# MySQL allows 'true' and 'false' on bool values
if ($value==true)
{
  --let $int_value=1
}

if ($value==false)
{
  --let $int_value=0
}