library/src/databases/bpdb/BP-DBSQLSyntaxGenerators.cc
// display mariadb parameters for a provided select info
display mariadb parameters for a provided select info
display mariadb parameters for a provided select info
BP_ERROR_T BP_DBDisplaySelectInfoMariadbBindParameters(P_BPDB_SQLGEN_SELECT select_info)
{
	if(!select_info)
		return ERR_FAILURE;
	if(!select_info->bind_parameters)
		return ERR_FAILURE;
	if(!select_info->bind_parameters_n)
		return ERR_FAILURE;
	printf("\n\t [+] Displaying MariaDB Bind Parameters %p", select_info->bind_parameters);
	size_t parameter_iter = 0;
	for
	(
			;
			parameter_iter < select_info->bind_parameters_n;
			parameter_iter++
	)
	{
		BP_DBDisplaySelectInfoMariadbBindParameter
		(
				&select_info->bind_parameters[parameter_iter],
				2,
				parameter_iter
		);
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DBDisplaySelectInfoMariadbBindParameters ( P_BPDB_SQLGEN_SELECT select_info ) { if ( ! select_info ) return ERR_FAILURE ; if ( ! select_info -> bind_parameters ) return ERR_FAILURE ; if ( ! select_info -> bind_parameters_n ) return ERR_FAILURE ; printf ( " \n \t " , select_info -> bind_parameters ) ; size_t parameter_iter = 0 ; for ( ; parameter_iter < select_info -> bind_parameters_n ; parameter_iter ++ ) { BP_DBDisplaySelectInfoMariadbBindParameter ( & select_info -> bind_parameters [ parameter_iter ] , 2 , parameter_iter ) ; } return ERR_SUCCESS ; }
display mariadb parameters for a provided select info
display mariadb parameters for a provided select info
// ensure we have select info to work with // ensure we have bind parameters // display parameter header // declare the parameter iterator // walk parameters and display // display the bind parameter // return indicating success