mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	add example on how to activate strict sql mode for mysql
This commit is contained in:
		
							parent
							
								
									2a5441e7bd
								
							
						
					
					
						commit
						e01ec020ab
					
				|  | @ -179,6 +179,8 @@ class SeedDMS_Core_DatabaseAccess { | |||
| 		switch($this->_driver) { | ||||
| 			case 'mysql': | ||||
| 				$this->_conn->exec('SET NAMES utf8'); | ||||
| 				/* Turn this on if you want strict checking of default values, etc. */ | ||||
| //				$this->_conn->exec("SET SESSION sql_mode = 'STRICT_TRANS_TABLES'");
 | ||||
| 				break; | ||||
| 			case 'sqlite': | ||||
| 				$this->_conn->exec('PRAGMA foreign_keys = ON'); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann