config root man

Current Path : /usr/opt/mysql57/mysql-test/suite/x/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/mysql57/mysql-test/suite/x/t/crud_insert_args.test

## Inserting and placeholders  

--source ../include/xplugin_preamble.inc

## Test data
DROP SCHEMA IF EXISTS xtest;
CREATE SCHEMA xtest;
CREATE TABLE xtest.xtable (value FLOAT);

## Test starts here
--write_file $MYSQL_TMP_DIR/crud_insert_args.tmp

##-- missing arg
-->quiet
Mysqlx.Crud.Insert {
  collection { name: "xtable" schema: "xtest"}
  data_model: TABLE
  projection {name: "value"}
  row {
    field {
      type : LITERAL literal { type: V_FLOAT v_float: 12.0 }
    }
  }
  row {
    field {
      type: PLACEHOLDER position: 0
    }
  }
}
-->noquiet
-->expecterror 5154
-->recvresult


##-- one arg
-->quiet
Mysqlx.Crud.Insert {
  collection { name: "xtable" schema: "xtest"}
  data_model: TABLE
  projection {name: "value"}
  row {
    field {
      type : LITERAL literal { type: V_FLOAT v_float: 23.1 }
    }
  }
  row {
    field {
      type: PLACEHOLDER position: 0
    }
  }
  args { type: V_FLOAT v_float: 34.2 }
}
-->noquiet
-->recvresult


##-- two args
-->quiet
Mysqlx.Crud.Insert {
  collection { name: "xtable" schema: "xtest"}
  data_model: TABLE
  projection {name: "value"}
  row {
    field {
      type: PLACEHOLDER position: 1
    }
  }
  row {
    field {
      type: PLACEHOLDER position: 0
    }
  }
  args { type: V_FLOAT v_float: 45.4 }
  args { type: V_FLOAT v_float: 56.3 }
}
-->noquiet
-->recvresult


##-- two args in one expr
-->quiet
Mysqlx.Crud.Insert {
  collection { name: "xtable" schema: "xtest"}
  data_model: TABLE
  projection {name: "value"}
  row {
    field {
      type: OPERATOR operator {
        name: "+"
        param {
          type: PLACEHOLDER position: 1
        }
        param {
          type: PLACEHOLDER position: 0
        }
      }
    }
  }
  args { type: V_FLOAT v_float: 24.2 }
  args { type: V_FLOAT v_float: 43.3 }
}
-->noquiet
-->recvresult
EOF

--exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/crud_insert_args.tmp 2>&1
--remove_file $MYSQL_TMP_DIR/crud_insert_args.tmp

SELECT * FROM xtest.xtable;

## Postamble
DROP SCHEMA IF EXISTS xtest;
UNINSTALL PLUGIN mysqlx;

Man Man