Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.34 KB | None | 0 0
  1. status = mysql_stmt_prepare(stmt, "CALL AggiungiContante(?, ?, ?)", strlen("CALL AggiungiContante(?, ?, ?)"));
  2.     test_stmt_error(stmt, status);
  3.  
  4.     memset(ps_params, 0, sizeof(ps_params));
  5.  
  6.     ps_params[0].buffer_type = MYSQL_TYPE_LONG;
  7.     ps_params[0].buffer = &id_categoria;
  8.     ps_params[0].buffer_length = sizeof(int);
  9.     ps_params[0].length = &length[0];
  10.     ps_params[0].is_null = 0;
  11.  
  12.     ps_params[1].buffer_type = MYSQL_TYPE_LONG;
  13.     ps_params[1].buffer = &peso_min_pacco;
  14.     ps_params[1].buffer_length = sizeof(int);
  15.     ps_params[1].length = &length[1];
  16.     ps_params[1].is_null = 0;
  17.  
  18.     ps_params[2].buffer_type = MYSQL_TYPE_LONG;
  19.     ps_params[2].buffer = &peso_max_pacco;
  20.     ps_params[2].buffer_length = sizeof(int);
  21.     ps_params[2].length = &length[2];
  22.     ps_params[2].is_null = 0;
  23.  
  24.     ps_params[3].buffer_type = MYSQL_TYPE_LONG;
  25.     ps_params[3].buffer = &dim_min_pacco;
  26.     ps_params[3].buffer_length = sizeof(int);
  27.     ps_params[3].length = &length[3];
  28.     ps_params[3].is_null = 0;
  29.  
  30.     ps_params[4].buffer_type = MYSQL_TYPE_LONG;
  31.     ps_params[4].buffer = &dim_max_pacco;
  32.     ps_params[4].buffer_length = sizeof(int);
  33.     ps_params[4].length = &length[4];
  34.     ps_params[4].is_null = 0;
  35.  
  36.     ps_params[5].buffer_type = MYSQL_TYPE_LONG;
  37.     ps_params[5].buffer = &stima_costo_pacco;
  38.     ps_params[5].buffer_length = sizeof(int);
  39.     ps_params[5].length = &length[5];
  40.     ps_params[5].is_null = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement