Skip to content

Commit 1d12b11

Browse files
committed
Add TryCast db function
1 parent 502565e commit 1d12b11

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='django-mssql-backend',
20-
version='2.2.0',
20+
version='2.3.0',
2121
description='Django backend for Microsoft SQL Server',
2222
long_description=open('README.rst').read(),
2323
author='ES Solutions AB',

sql_server/pyodbc/functions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.db.models.functions import Cast
2+
3+
4+
class TryCast(Cast):
5+
function = 'TRY_CAST'

0 commit comments

Comments
 (0)