mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-27 05:40:00 +03:00
more descriptive error messages
This commit is contained in:
parent
025e7ee835
commit
5a9b0bfda9
2 changed files with 4 additions and 0 deletions
2
mysql.d
2
mysql.d
|
@ -100,6 +100,8 @@ class MySqlResult : ResultSet {
|
|||
private void fetchNext() {
|
||||
assert(result);
|
||||
auto r = mysql_fetch_row(result);
|
||||
if(r is null)
|
||||
throw new Exception("there is no next row");
|
||||
uint numFields = mysql_num_fields(result);
|
||||
uint* lengths = mysql_fetch_lengths(result);
|
||||
string[] row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue