|
| 1 | +Public Class SqlError |
| 2 | + Inherits Databasic.SqlError |
| 3 | + |
| 4 | + Public Property ColumnName As String |
| 5 | + Public Property ConstraintName As String |
| 6 | + Public Property DataTypeName As String |
| 7 | + Public Property Detail As String |
| 8 | + Public Property File As String |
| 9 | + Public Property Hint As String |
| 10 | + Public Property InternalPosition As Integer |
| 11 | + Public Property InternalQuery As String |
| 12 | + Public Property Line As String |
| 13 | + Public Property Position As Integer |
| 14 | + Public Property Routine As String |
| 15 | + Public Property SchemaName As String |
| 16 | + Public Property Severity As String |
| 17 | + Public Property TableName As String |
| 18 | + Public Property Where As String |
| 19 | + |
| 20 | + Public Sub New(pgSqlNotice As Global.Npgsql.PostgresNotice) |
| 21 | + Me.Message = pgSqlNotice.MessageText |
| 22 | + Me.Code = pgSqlNotice.SqlState |
| 23 | + |
| 24 | + Me.ColumnName = pgSqlNotice.ColumnName |
| 25 | + Me.ConstraintName = pgSqlNotice.ConstraintName |
| 26 | + Me.DataTypeName = pgSqlNotice.DataTypeName |
| 27 | + Me.Detail = pgSqlNotice.Detail |
| 28 | + Me.File = pgSqlNotice.File |
| 29 | + Me.Hint = pgSqlNotice.Hint |
| 30 | + Me.InternalPosition = pgSqlNotice.InternalPosition |
| 31 | + Me.InternalQuery = pgSqlNotice.InternalQuery |
| 32 | + Me.Line = pgSqlNotice.Line |
| 33 | + Me.Position = pgSqlNotice.Position |
| 34 | + Me.Routine = pgSqlNotice.Routine |
| 35 | + Me.SchemaName = pgSqlNotice.SchemaName |
| 36 | + Me.Severity = pgSqlNotice.Severity |
| 37 | + Me.TableName = pgSqlNotice.TableName |
| 38 | + Me.Where = pgSqlNotice.Where |
| 39 | + End Sub |
| 40 | +End Class |
0 commit comments