public ReportWarnings ( |
||
connection | ||
Résultat | List |
public bool ReadNextResult(bool isFirst) { long rows = 0; while ((driver.ServerStatus & (ServerStatusFlags.MoreResults | ServerStatusFlags.AnotherQuery)) != 0 || isFirst) { fieldCount = (ulong)driver.ReadResult(ref rows, ref lastInsertId); if (rows != -1) { if (affectedRows == -1) { affectedRows = 0; } affectedRows += rows; } if (isFirst) { isFirst = false; } if (IsResultSet) { readSchema = false; readRows = false; return(true); } } // if our batch resulted in warnings, then report them now if (driver.HasWarnings) { driver.ReportWarnings(); } return(false); }