"PDO_PARAM_EVT_NORMALIZE",
};
+#ifndef PDO_USE_MYSQLND
+static unsigned char libmysql_false_buffer = 0;
+static unsigned char libmysql_true_buffer = 1;
+#endif
static int pdo_mysql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type) /* {{{ */
{
*b->length = Z_STRLEN_P(parameter);
PDO_DBG_RETURN(1);
+ case IS_FALSE:
+ b->buffer_type = MYSQL_TYPE_TINY;
+ b->buffer = &libmysql_false_buffer;
+ PDO_DBG_RETURN(1);
+
+ case IS_TRUE:
+ b->buffer_type = MYSQL_TYPE_TINY;
+ b->buffer = &libmysql_true_buffer;
+ PDO_DBG_RETURN(1);
+
case IS_LONG:
b->buffer_type = MYSQL_TYPE_LONG;
b->buffer = &Z_LVAL_P(parameter);