mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-11-03 16:53:36 +03:00 
			
		
		
		
	Attempt to detect when two or more threads try to use the same database at
the same time and return an SQLITE_MISUSE error. Also return this error if an attempt is made to use a closed database. (CVS 558) FossilOrigin-Name: a05fabd2df1cb38c555a7b2f31b0ca687db500c2
This commit is contained in:
		@@ -14,7 +14,7 @@
 | 
			
		||||
** This file contains functions for allocating memory, comparing
 | 
			
		||||
** strings, and stuff like that.
 | 
			
		||||
**
 | 
			
		||||
** $Id: util.c,v 1.41 2002/03/06 03:08:26 drh Exp $
 | 
			
		||||
** $Id: util.c,v 1.42 2002/05/10 05:44:56 drh Exp $
 | 
			
		||||
*/
 | 
			
		||||
#include "sqliteInt.h"
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
@@ -1096,6 +1096,7 @@ const char *sqlite_error_string(int rc){
 | 
			
		||||
    case SQLITE_TOOBIG:     z = "too much data for one table row";       break;
 | 
			
		||||
    case SQLITE_CONSTRAINT: z = "constraint failed";                     break;
 | 
			
		||||
    case SQLITE_MISMATCH:   z = "datatype mismatch";                     break;
 | 
			
		||||
    case SQLITE_MISUSE:     z = "SQLite library used incorrectly";       break;
 | 
			
		||||
    default:                z = "unknown error";                         break;
 | 
			
		||||
  }
 | 
			
		||||
  return z;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user