Lines Matching refs:stmt
15 $stmt = new mysqli_stmt($link);
18 var_dump(get_parent_class($stmt));
22 $methods = get_class_methods($stmt);
72 $variables = array_keys(get_class_vars(get_class($stmt)));
78 $variables = array_keys(get_object_vars($stmt));
84 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
85 printf("stmt->affected_rows = '%s'\n", $stmt->affected_rows);
87 if (!$stmt->prepare("INSERT INTO test(id, label) VALUES (100, 'z')") ||
88 !$stmt->execute())
89 printf("[001] [%d] %s\n", $stmt->errno, $stmt->error);
91 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
92 printf("stmt->affected_rows = '%s'\n", $stmt->affected_rows);
94 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
95 printf("stmt->errno = '%s'\n", $stmt->errno);
97 assert(mysqli_stmt_error($stmt) === $stmt->error);
98 printf("stmt->error = '%s'\n", $stmt->error);
100 assert(mysqli_stmt_error_list($stmt) === $stmt->error_list);
101 var_dump("stmt->error = ", $stmt->error_list);
103 assert(mysqli_stmt_field_count($stmt) === $stmt->field_count);
104 printf("stmt->field_count = '%s'\n", $stmt->field_count);
106 assert($stmt->id > 0);
107 printf("stmt->id = '%s'\n", $stmt->id);
109 assert(mysqli_stmt_insert_id($stmt) === $stmt->insert_id);
110 printf("stmt->insert_id = '%s'\n", $stmt->insert_id);
112 assert(mysqli_stmt_num_rows($stmt) === $stmt->num_rows);
113 printf("stmt->num_rows = '%s'\n", $stmt->num_rows);
115 assert(mysqli_stmt_param_count($stmt) === $stmt->param_count);
116 printf("stmt->param_count = '%s'\n", $stmt->param_count);
118 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
119 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
122 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
123 @$stmt->unknown = 13;
124 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
127 $stmt = new mysqli_stmt($link, 'SELECT id FROM test ORDER BY id');
128 if (!$stmt->execute())
129 printf("[002] [%d] %s\n", $stmt->errno, $stmt->error);
130 $stmt->close();
133 if (!is_object($stmt = new mysqli_stmt($link, $obj)))
134 printf("[003] Expecting NULL got %s/%s\n", gettype($stmt), $stmt);
177 stmt->affected_rows = ''
178 stmt->affected_rows = '1'
179 stmt->errno = '0'
180 stmt->error = ''
181 string(14) "stmt->error = "
184 stmt->field_count = '0'
185 stmt->id = '%d'
186 stmt->insert_id = '0'
187 stmt->num_rows = '0'
188 stmt->param_count = '0'
189 stmt->sqlstate = '00000'
192 stmt->unknown = ''
193 stmt->unknown = '13'