sqllogictest
Check-in [dafa60c487]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated usage.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dafa60c487f28b2ddf0eba4dccf2855cdda90531
User & Date: shaneh 2008-12-02 02:24:49
Context
2008-12-02
02:28
Added more error checking. Updated to allow specifing DSN and DATABASE name in -odbc option. check-in: 2014c5b9c3 user: shaneh tags: trunk
02:24
Updated usage. check-in: dafa60c487 user: shaneh tags: trunk
2008-12-01
20:41
Fix the select2.test output. check-in: 8d24867c8a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqllogictest.c.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
..
58
59
60
61
62
63
64

65
66
67





68
69
70
71
72
73
74
...
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** This main driver for the sqllogictest program.
*/
#if WIN32
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "sqllogictest.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
................................................................................
  apEngine[nEngine-1] = (DbEngine *)p;
}

/*
** Print a usage comment and die
*/
static void usage(const char *argv0){

  fprintf(stderr,
    "Usage: %s [-verify] [-engine DBENGINE] [-connection STR] script\n",
    argv0);





  exit(1);
}

/*
** A structure to keep track of the state of scanning the input script.
*/
typedef struct Script Script;
................................................................................
    fprintf(stderr, "Choices are:");
    for(i=0; i<nEngine; i++) fprintf(stderr, " %s", apEngine[i]->zName);
    fprintf(stderr, "\n");
    exit(1);
  }

  /*
  ** Read the entire script file content into memory
  */
  in = fopen(zScriptFile, "rb");
  if( in==0 ){
    fprintf(stderr, "%s: cannot open for reading\n", zScriptFile);
    exit(1);
  }
  fseek(in, 0L, SEEK_END);







|







 







>



>
>
>
>
>







 







|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
..
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
...
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** This main driver for the sqllogictest program.
*/
#ifdef WIN32
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "sqllogictest.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
................................................................................
  apEngine[nEngine-1] = (DbEngine *)p;
}

/*
** Print a usage comment and die
*/
static void usage(const char *argv0){
#if 0  /* Obsolete code */
  fprintf(stderr,
    "Usage: %s [-verify] [-engine DBENGINE] [-connection STR] script\n",
    argv0);
#else
  fprintf(stderr,
    "Usage: %s [-verify] [-odbc STR] script\n",
    argv0);
#endif
  exit(1);
}

/*
** A structure to keep track of the state of scanning the input script.
*/
typedef struct Script Script;
................................................................................
    fprintf(stderr, "Choices are:");
    for(i=0; i<nEngine; i++) fprintf(stderr, " %s", apEngine[i]->zName);
    fprintf(stderr, "\n");
    exit(1);
  }

  /*
  ** Read the entire script file contents into memory
  */
  in = fopen(zScriptFile, "rb");
  if( in==0 ){
    fprintf(stderr, "%s: cannot open for reading\n", zScriptFile);
    exit(1);
  }
  fseek(in, 0L, SEEK_END);