File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 357
357
<DbType Name =" long" To =" int8" />
358
358
<DbType Name =" longtext" To =" text" />
359
359
<DbType Name =" timestamp" To =" timestamp" />
360
+ <DbType Name =" geometry" To =" geometry" />
361
+ <DbType Name =" geography" To =" geography" />
360
362
</Database >
361
363
362
364
<Database DbProvider =" MySql" Language =" PostgreSql" >
376
378
<DbType Name =" numeric" To =" decimal" />
377
379
<DbType Name =" float" To =" float8" />
378
380
<DbType Name =" timestamp" To =" timestamp" />
381
+ <DbType Name =" geometry" To =" geometry" />
382
+ <DbType Name =" geography" To =" geography" />
379
383
</Database >
380
384
<!-- PostgreSql-Language End-->
381
385
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ DataSource:
53
53
Name: Extract
54
54
Parameters:
55
55
DbProvider: @dbSource.DbRepository.DbProviderName
56
- ConnectionString: " @extractConnectionString "
56
+ ConnectionString: @extractConnectionString
57
57
Query: 'Select * From @table.Name @GetExtractWhere() '
58
58
PKColumn: @PKColumn.Name
59
59
AutoIncrement: @( PKColumn .AutoIncrement ? " true" : " false" )
77
77
Type: Load
78
78
Parameters:
79
79
DbProvider: @loadDbProvider
80
- ConnectionString: " @loadConnectionString "
80
+ ConnectionString: @loadConnectionString
81
81
Table: @loadTable
82
82
@switch (extractMode)
83
83
{
@@ -109,4 +109,4 @@ Build:
109
109
{@(" ," )}
110
110
@Html.NewLine()
111
111
}
112
- ]
112
+ ]
Original file line number Diff line number Diff line change 7
7
String GetPGSqlType (SmartCode .Generator .Entity .Column col )
8
8
{
9
9
var sqlDbType = col .LanguageType ;
10
+ if (string .IsNullOrEmpty (sqlDbType )) {
11
+ return " NAType" ;
12
+ }
10
13
if (sqlDbType .StartsWith (" varchar" ))
11
14
{
12
15
if (col .DataLength == - 1 ) {
51
54
@Html.NewLine()
52
55
}
53
56
</text >
54
- }
57
+ }
You can’t perform that action at this time.
0 commit comments