We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07ce7f commit bf1c27dCopy full SHA for bf1c27d
src/Peachpie.Library.MySql/MySqli/mysqli.cs
@@ -88,7 +88,7 @@ internal mysqli(Context ctx, IDbConnection dbconnection)
88
/// <summary>
89
/// Returns the number of columns for the most recent query.
90
/// </summary>
91
- public int field_count => Connection.LastResult.FieldCount;
+ public int field_count => Connection.LastResult?.FieldCount ?? 0;
92
93
94
/// Get MySQL client info.
0 commit comments