Missing braces around an OR. The test (select_random_points) now works for pgsql

This commit is contained in:
Robins Tharakan
2016-12-03 13:22:05 +00:00
parent 6ed28e2158
commit d0a85f999f

View File

@ -38,7 +38,7 @@ function prepare()
elseif (db_driver == "pgsql") then
query = [[
CREATE TABLE sbtest (
id ]] .. (sb.oltp_auto_inc and "SERIAL") or "" .. [[,
id ]] .. ((oltp_auto_inc and "SERIAL") or "") .. [[,
k INTEGER DEFAULT '0' NOT NULL,
c CHAR(120) DEFAULT '' NOT NULL,
pad CHAR(60) DEFAULT '' NOT NULL,