You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							40 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
	
	
							40 lines
						
					
					
						
							1.2 KiB
						
					
					
				| <?php | |
| /** | |
|  * @link http://www.yiiframework.com/ | |
|  * @copyright Copyright (c) 2008 Yii Software LLC | |
|  * @license http://www.yiiframework.com/license/ | |
|  */ | |
|  | |
| namespace yii\db\mssql; | |
|  | |
| /** | |
|  * QueryBuilder is the query builder for MS SQL database (version 2008 and above). | |
|  * | |
|  * @author Qiang Xue <qiang.xue@gmail.com> | |
|  * @author Christophe Boulain <Christophe.Boulain@gmail.com> | |
|  * @author Timur Ruziev <resurtm@gmail.com> | |
|  * @since 2.0 | |
|  */ | |
| class QueryBuilder extends \yii\db\QueryBuilder | |
| { | |
| 	/** | |
| 	 * @var array mapping from abstract column types (keys) to physical column types (values). | |
| 	 */ | |
| 	public $typeMap = array( | |
| 		Schema::TYPE_PK => 'int IDENTITY PRIMARY KEY', | |
| 		Schema::TYPE_STRING => 'varchar(255)', | |
| 		Schema::TYPE_TEXT => 'text', | |
| 		Schema::TYPE_SMALLINT => 'smallint(6)', | |
| 		Schema::TYPE_INTEGER => 'int(11)', | |
| 		Schema::TYPE_BIGINT => 'bigint(20)', | |
| 		Schema::TYPE_FLOAT => 'float', | |
| 		Schema::TYPE_DECIMAL => 'decimal', | |
| 		Schema::TYPE_DATETIME => 'datetime', | |
| 		Schema::TYPE_TIMESTAMP => 'timestamp', | |
| 		Schema::TYPE_TIME => 'time', | |
| 		Schema::TYPE_DATE => 'date', | |
| 		Schema::TYPE_BINARY => 'binary', | |
| 		Schema::TYPE_BOOLEAN => 'tinyint(1)', | |
| 		Schema::TYPE_MONEY => 'decimal(19,4)', | |
| 	); | |
| }
 | |
| 
 |