Fix comma in the switch, fix wronf function name
This commit is contained in:
		
							parent
							
								
									04431a7a15
								
							
						
					
					
						commit
						ab28edaf25
					
				| @ -266,14 +266,14 @@ func getColumnDefault(fi *fieldInfo) string { | ||||
| 	 | ||||
| 		case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField, | ||||
| 		TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField,  | ||||
| 		TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField: | ||||
| 		TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField, | ||||
| 		TypeDecimalField: | ||||
| 			d = "0" | ||||
| 	} | ||||
| 	 | ||||
| 	if fi.colDefault { | ||||
| 		if !fi.initial.Exist() { | ||||
| 			v = fmt.Srintf(t, "") | ||||
| 			v = fmt.Sprintf(t, "") | ||||
| 		} else { | ||||
| 			v = fmt.Sprintf(t, fi.initial.String()) | ||||
| 		} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user