@@ -403,47 +403,47 @@ MYSQLI_MAP_PROPERTY_FUNC_STR(stmt_sqlstate_read, mysql_stmt_sqlstate, MYSQLI_GET
403403
404404/* }}} */ 
405405const  mysqli_property_entry  mysqli_link_property_entries [] =  {
406- 	{"affected_rows" , 	strlen ("affected_rows" ),	link_affected_rows_read , NULL },
407- 	{"client_info" , 	strlen ("client_info" ),		link_client_info_read , NULL },
408- 	{"client_version" ,	strlen ("client_version" ),	link_client_version_read , NULL },
409- 	{"connect_errno" ,	strlen ("connect_errno" ),	link_connect_errno_read , NULL },
410- 	{"connect_error" ,	strlen ("connect_error" ),	link_connect_error_read , NULL },
411- 	{"errno" ,			strlen ("errno" ),			link_errno_read , NULL },
412- 	{"error" ,			strlen ("error" ),			link_error_read , NULL },
413- 	{"error_list" ,		strlen ("error_list" ),		link_error_list_read , NULL },
414- 	{"field_count" ,		strlen ("field_count" ),		link_field_count_read , NULL },
415- 	{"host_info" ,		strlen ("host_info" ),		link_host_info_read , NULL },
416- 	{"info" ,			strlen ("info" ),				link_info_read , NULL },
417- 	{"insert_id" ,		strlen ("insert_id" ),		link_insert_id_read , NULL },
418- 	{"server_info" ,		strlen ("server_info" ),		link_server_info_read , NULL },
419- 	{"server_version" ,	strlen ("server_version" ),	link_server_version_read , NULL },
420- 	{"sqlstate" ,		strlen ("sqlstate" ),			link_sqlstate_read , NULL },
421- 	{"protocol_version" ,strlen ("protocol_version" ),	link_protocol_version_read , NULL },
422- 	{"thread_id" ,		strlen ("thread_id" ), 		link_thread_id_read , NULL },
423- 	{"warning_count" ,	strlen ("warning_count" ), 	link_warning_count_read , NULL },
406+ 	{"affected_rows" , 	sizeof ("affected_rows" )  -   1 ,	link_affected_rows_read , NULL },
407+ 	{"client_info" , 	sizeof ("client_info" )  -   1 ,		link_client_info_read , NULL },
408+ 	{"client_version" ,	sizeof ("client_version" )  -   1 ,	link_client_version_read , NULL },
409+ 	{"connect_errno" ,	sizeof ("connect_errno" )  -   1 ,	link_connect_errno_read , NULL },
410+ 	{"connect_error" ,	sizeof ("connect_error" )  -   1 ,	link_connect_error_read , NULL },
411+ 	{"errno" ,			sizeof ("errno" )  -   1 ,			link_errno_read , NULL },
412+ 	{"error" ,			sizeof ("error" )  -   1 ,			link_error_read , NULL },
413+ 	{"error_list" ,		sizeof ("error_list" )  -   1 ,		link_error_list_read , NULL },
414+ 	{"field_count" ,		sizeof ("field_count" )  -   1 ,		link_field_count_read , NULL },
415+ 	{"host_info" ,		sizeof ("host_info" )  -   1 ,		link_host_info_read , NULL },
416+ 	{"info" ,			sizeof ("info" )  -   1 ,				link_info_read , NULL },
417+ 	{"insert_id" ,		sizeof ("insert_id" )  -   1 ,		link_insert_id_read , NULL },
418+ 	{"server_info" ,		sizeof ("server_info" )  -   1 ,		link_server_info_read , NULL },
419+ 	{"server_version" ,	sizeof ("server_version" )  -   1 ,	link_server_version_read , NULL },
420+ 	{"sqlstate" ,		sizeof ("sqlstate" )  -   1 ,			link_sqlstate_read , NULL },
421+ 	{"protocol_version" ,sizeof ("protocol_version" )  -   1 ,	link_protocol_version_read , NULL },
422+ 	{"thread_id" ,		sizeof ("thread_id" )  -   1 , 		link_thread_id_read , NULL },
423+ 	{"warning_count" ,	sizeof ("warning_count" )  -   1 , 	link_warning_count_read , NULL },
424424	{NULL , 0 , NULL , NULL }
425425};
426426
427427
428428const  mysqli_property_entry  mysqli_result_property_entries [] =  {
429- 	{"current_field" ,strlen ("current_field" ),	result_current_field_read , NULL },
430- 	{"field_count" , strlen ("field_count" ),	result_field_count_read , NULL },
431- 	{"lengths" , 	strlen ("lengths" ),		result_lengths_read , NULL },
432- 	{"num_rows" , 	strlen ("num_rows" ),		result_num_rows_read , NULL },
433- 	{"type" , 		strlen ("type" ),			result_type_read , NULL },
429+ 	{"current_field" ,sizeof ("current_field" )- 1 ,	result_current_field_read , NULL },
430+ 	{"field_count" , sizeof ("field_count" )  -   1 ,	result_field_count_read , NULL },
431+ 	{"lengths" , 	sizeof ("lengths" )  -   1 ,		result_lengths_read , NULL },
432+ 	{"num_rows" , 	sizeof ("num_rows" )  -   1 ,		result_num_rows_read , NULL },
433+ 	{"type" , 		sizeof ("type" )  -   1 ,			result_type_read , NULL },
434434	{NULL , 0 , NULL , NULL }
435435};
436436
437437const  mysqli_property_entry  mysqli_stmt_property_entries [] =  {
438- 	{"affected_rows" , strlen ("affected_rows" ),stmt_affected_rows_read , NULL },
439- 	{"insert_id" ,	strlen ("insert_id" ), 	stmt_insert_id_read , NULL },
440- 	{"num_rows" ,	strlen ("num_rows" ), 	stmt_num_rows_read , NULL },
441- 	{"param_count" , strlen ("param_count" ),	stmt_param_count_read , NULL },
442- 	{"field_count" , strlen ("field_count" ),	stmt_field_count_read , NULL },
443- 	{"errno" ,		strlen ("errno" ),		stmt_errno_read , NULL },
444- 	{"error" ,		strlen ("error" ), 		stmt_error_read , NULL },
445- 	{"error_list" ,	strlen ("error_list" ), 	stmt_error_list_read , NULL },
446- 	{"sqlstate" ,	strlen ("sqlstate" ),		stmt_sqlstate_read , NULL },
447- 	{"id" ,			strlen ("id" ),			stmt_id_read , NULL },
438+ 	{"affected_rows" , sizeof ("affected_rows" )- 1 ,stmt_affected_rows_read , NULL },
439+ 	{"insert_id" ,	sizeof ("insert_id" )  -   1 , 	stmt_insert_id_read , NULL },
440+ 	{"num_rows" ,	sizeof ("num_rows" )  -   1 , 	stmt_num_rows_read , NULL },
441+ 	{"param_count" , sizeof ("param_count" )  -   1 ,	stmt_param_count_read , NULL },
442+ 	{"field_count" , sizeof ("field_count" )  -   1 ,	stmt_field_count_read , NULL },
443+ 	{"errno" ,		sizeof ("errno" )  -   1 ,		stmt_errno_read , NULL },
444+ 	{"error" ,		sizeof ("error" )  -   1 , 		stmt_error_read , NULL },
445+ 	{"error_list" ,	sizeof ("error_list" )  -   1 , 	stmt_error_list_read , NULL },
446+ 	{"sqlstate" ,	sizeof ("sqlstate" )  -   1 ,		stmt_sqlstate_read , NULL },
447+ 	{"id" ,			sizeof ("id" )  -   1 ,			stmt_id_read , NULL },
448448	{NULL , 0 , NULL , NULL }
449449};
0 commit comments