File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
tests/suites/0_stateless/19_fuzz Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ 1
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ CURDIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
4+ . " $CURDIR " /../../../shell_env.sh
5+
6+
7+ MAX_SCALE=74
8+ TIMES=30
9+
10+ echo " SELECT 1 + 1" > /tmp/decimal.sql
11+ for scale in ` seq 0 ${MAX_SCALE} ` ; do
12+ precisions=$( shuf -i 1-$[$MAX_SCALE - scale] -n ${TIMES} )
13+ for precision in ${precisions} ; do
14+ printf " , 1.1 + 2.%0${scale} d\n"
15+ printf " , 1.%0${scale} d + 2.%0${scale} d\n"
16+ printf " , 1%0${precision} d.%0${scale} d + 2.1\n"
17+ printf " , 1%0${precision} d.%0${scale} d + 2.%0${scale} d\n"
18+ printf " , 1%0${precision} d.%0${scale} d + 2%0${precision} d.%0${scale} d\n"
19+ done
20+ done >> /tmp/decimal.sql
21+
22+ cat /tmp/decimal.sql | $BENDSQL_CLIENT_OUTPUT_NULL
23+ echo " 1"
24+
You can’t perform that action at this time.
0 commit comments