Skip to content

Commit a230120

Browse files
committed
release 1.2.8
1 parent e871433 commit a230120

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

Databasic.OracleSql.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata minClientVersion="2.6">
44
<id>Databasic.OracleSql</id>
5-
<version>1.2.6.0</version>
5+
<version>1.2.8.0</version>
66
<title>Databasic - Oracle</title>
77
<authors>Tom Flidr</authors>
88
<owners>Tom Flidr</owners>
@@ -18,7 +18,7 @@
1818
<tags>sql oracle orcl database query command select insert update delete pure sql dml tool utility library</tags>
1919
<dependencies>
2020
<dependency id="Oracle.DataAccess.x86.4" version="4.112.3" />
21-
<dependency id="Databasic.Core" version="1.2.4.0" />
21+
<dependency id="Databasic.Core" version="1.2.8.0" />
2222
</dependencies>
2323
<frameworkAssemblies>
2424
<frameworkAssembly assemblyName="System.Core" />

Databasic.OracleSql.vbproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
<PropertyGroup>
4343
<OptionInfer>On</OptionInfer>
4444
</PropertyGroup>
45+
<PropertyGroup>
46+
<SignAssembly>true</SignAssembly>
47+
</PropertyGroup>
48+
<PropertyGroup>
49+
<AssemblyOriginatorKeyFile>Tom Flidr - .NET.pfx</AssemblyOriginatorKeyFile>
50+
</PropertyGroup>
4551
<ItemGroup>
4652
<Reference Include="Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86">
4753
<HintPath>..\packages\Oracle.DataAccess.x86.4.4.112.3\lib\Oracle.DataAccess.dll</HintPath>
@@ -107,6 +113,7 @@
107113
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
108114
</None>
109115
<None Include="packages.config" />
116+
<None Include="Tom Flidr - .NET.pfx" />
110117
<None Include="_CreateNewNuGetPackage\Config.ps1" />
111118
<None Include="_CreateNewNuGetPackage\DoNotModify\CreateNuGetPackage.ps1" />
112119
<None Include="_CreateNewNuGetPackage\DoNotModify\New-NuGetPackage.ps1" />

My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ Imports System.Runtime.InteropServices
3434
' by using the '*' as shown below:
3535
' <Assembly: AssemblyVersion("1.0.*")>
3636

37-
<Assembly: AssemblyVersion("1.2.6.0")>
38-
<Assembly: AssemblyFileVersion("1.2.6.0")>
37+
<Assembly: AssemblyVersion("1.2.8.0")>
38+
<Assembly: AssemblyFileVersion("1.2.8.0")>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Databasic - Oracle
22

3-
[![Latest Stable Version](https://img.shields.io/badge/Stable-v1.2.6-brightgreen.svg?style=plastic)](https://github.com/databasic-net/databasic-core/releases)
3+
[![Latest Stable Version](https://img.shields.io/badge/Stable-v1.2.8-brightgreen.svg?style=plastic)](https://github.com/databasic-net/databasic-core/releases)
44
[![License](https://img.shields.io/badge/Licence-BSD3-brightgreen.svg?style=plastic)](https://raw.githubusercontent.com/databasic-net/databasic-core/master/LICENCE.md)
55
![.NET Version](https://img.shields.io/badge/.NET->=4.0-brightgreen.svg?style=plastic)
66

Statement.vb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Imports System.ComponentModel
1+
Imports System.ComponentModel
22
Imports System.Data.Common
33
Imports Oracle.DataAccess.Client
44

@@ -75,9 +75,13 @@ Public Class Statement
7575
Dim sqlParamValue As Object
7676
For Each prop As PropertyDescriptor In TypeDescriptor.GetProperties(sqlParams)
7777
sqlParamValue = prop.GetValue(sqlParams)
78+
If (sqlParamValue Is Nothing) Then
79+
sqlParamValue = DBNull.Value
80+
Else
81+
sqlParamValue = Me.getPossibleUnderlyingEnumValue(sqlParamValue)
82+
End If
7883
Me._cmd.Parameters.Add(
79-
prop.Name,
80-
If((sqlParamValue Is Nothing), DBNull.Value, sqlParamValue)
84+
prop.Name, sqlParamValue
8185
)
8286
Next
8387
End If
@@ -87,11 +91,16 @@ Public Class Statement
8791
''' </summary>
8892
''' <param name="sqlParams">Dictionary with named keys as Oracle statement params without any '@' chars in dictionary keys.</param>
8993
Protected Overrides Sub addParamsWithValue(sqlParams As Dictionary(Of String, Object))
94+
Dim sqlParamValue As Object
9095
If (Not sqlParams Is Nothing) Then
9196
For Each pair As KeyValuePair(Of String, Object) In sqlParams
97+
If (pair.Value Is Nothing) Then
98+
sqlParamValue = DBNull.Value
99+
Else
100+
sqlParamValue = Me.getPossibleUnderlyingEnumValue(pair.Value)
101+
End If
92102
Me._cmd.Parameters.Add(
93-
pair.Key,
94-
If((pair.Value Is Nothing), DBNull.Value, pair.Value)
103+
pair.Key, sqlParamValue
95104
)
96105
Next
97106
End If

0 commit comments

Comments
 (0)