Merge pull request #18144 from kamil-tekiela/Util-formatNumber-type-bug

Fix bug preventing opening information_schema
This commit is contained in:
Maurício Meneghini Fauth 2023-02-24 18:56:02 -03:00 committed by GitHub
commit ab4af6863f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@
{% if not is_innodb and showtable['Rows'] is defined %}
<tr>
<th class="name">{% trans 'Rows' %}</th>
<td class="value">{{ format_number(showtable['Rows'], 0) }}</td>
<td class="value">{{ format_number(showtable['Rows'] ?? 0, 0) }}</td>
</tr>
{% endif %}
@ -145,7 +145,7 @@
{% if showtable['Auto_increment'] is defined %}
<tr>
<th class="name">{% trans 'Next autoindex' %}</th>
<td class="value">{{ format_number(showtable['Auto_increment'], 0) }}</td>
<td class="value">{{ format_number(showtable['Auto_increment'] ?? 0, 0) }}</td>
</tr>
{% endif %}