SQLite

View Ticket
Login
2017-08-28
11:13 Fixed ticket [02f0f4c5]: The ".dump" comman crashes following PRAGMA empty_result_callbacks=1 plus 5 other changes (artifact: c54498ab user: drh)
11:12
Fix the ".dump", ".schema", and ".fullschema" commands of the command-line shell so that they work even if PRAGMA empty_result_callbacks is enabled. Fix for ticket [02f0f4c54f281]. (check-in: cf0d3715 user: drh tags: trunk)
10:57 New ticket [02f0f4c5] The ".dump" comman crashes following PRAGMA empty_result_callbacks=1. (artifact: db4451b8 user: drh)

Ticket Hash: 02f0f4c54f2819b3623e6f86128086a83b0a1b62
Title: The ".dump" comman crashes following PRAGMA empty_result_callbacks=1
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2017-08-28 11:13:08
Version Found In:
User Comments:
drh added on 2017-08-28 10:57:31:

The following script causes the command-line shell to crash:

PRAGMA empty_result_callbacks=1;
.dump

This is a problem in the command-line shell program, not the the core SQLite library. The problem seems to have been introduced by check-in [a0028d4808275c] on 2009-05-21 and first appeared in SQLite 3.6.15.