mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Fix a bug in the ".show" command of the CLI. Ticket #2942. (CVS 4792)
FossilOrigin-Name: dedf5f230bf34a207f2ee0a8349a2ea602a38aba
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains code to implement the "sqlite" command line
|
||||
** utility for accessing SQLite databases.
|
||||
**
|
||||
** $Id: shell.c,v 1.174 2008/01/21 16:22:46 drh Exp $
|
||||
** $Id: shell.c,v 1.175 2008/02/15 17:38:06 drh Exp $
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -336,10 +336,9 @@ struct callback_data {
|
||||
#define MODE_Insert 5 /* Generate SQL "insert" statements */
|
||||
#define MODE_Tcl 6 /* Generate ANSI-C or TCL quoted elements */
|
||||
#define MODE_Csv 7 /* Quote strings, numbers are plain */
|
||||
#define MODE_NUM_OF 8 /* The number of modes (not a mode itself) */
|
||||
#define MODE_Explain 9 /* Like MODE_Column, but do not truncate data */
|
||||
#define MODE_Explain 8 /* Like MODE_Column, but do not truncate data */
|
||||
|
||||
static const char *modeDescr[MODE_NUM_OF] = {
|
||||
static const char *modeDescr[] = {
|
||||
"line",
|
||||
"column",
|
||||
"list",
|
||||
@@ -348,6 +347,7 @@ static const char *modeDescr[MODE_NUM_OF] = {
|
||||
"insert",
|
||||
"tcl",
|
||||
"csv",
|
||||
"explain",
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user