Skip to content

Commit

Permalink
See README.md for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DougHennig committed Sep 17, 2022
1 parent 2415a20 commit da2336e
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 72 deletions.
7 changes: 4 additions & 3 deletions PROGRAM/bulkxmlload.prg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Function: BulkXMLLoad
* Purpose: Performs a SQL Server bulk XML load
* Author: Doug Hennig
* Last revision: 08/26/2020
* Last revision: 09/17/2022
* Parameters: tcAlias - the alias of the cursor to export
* tcTable - the name of the table to import into
* ttBlank - the value to use for blank DateTime values
Expand Down Expand Up @@ -254,9 +254,10 @@ enddo while lnRecsProcessed < reccount()
if llClose
use
endif llClose
if empty(lcReturn)
try
erase (lcSchema)
erase (lcData)
endif empty(lcReturn)
catch
endtry
select (lnSelect)
return lcReturn
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,25 @@ See [How to contribute to Upsizing Wizard](.github/CONTRIBUTING.md) for details

## Releases

### 2022.09.17

* Added a record to the TypeMap table to support upsizing VFP Date to SQL Server.

* Added the reserved word "TRAN" to the keywords table and removed the ServerType column.

* Upon completion, calls the CompleteProcess function rather than displaying a message box and raises the new UpsizingComplete event.

* Fixed a bug in DefaultsAndRules: added [] delimiters around field name.

* Added support for multiple unique keys by appending field name to the name.

* Error messages in BulkXMLLoad are now logged.

* XSD and XML files used by BulkXMLLoad are now deleted when BulkXMLLoad fails.

### 2019.02.04

* This updates add the reserved word "BULK" to the keywords table and removes some debugging code.
* This update adds the reserved word "BULK" to the keywords table and removes some debugging code.

### 2019.02.04

Expand Down
Binary file modified UpsizingWizard.PJT
Binary file not shown.
47 changes: 25 additions & 22 deletions data/_exprmap.db2
Original file line number Diff line number Diff line change
Expand Up @@ -97,28 +97,31 @@
</FIELD>
</FIELDS>


<indexFile>_EXPRMAP.CDX</indexFile>

<INDEXES>
<INDEX>
<TagName>ORACLE</TagName>
<TagType>REGULAR</TagType>
<Key>ORACLE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>SQLSERVER</TagName>
<TagType>REGULAR</TagType>
<Key>SQLSERVER</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>

<IndexFiles>

<IndexFile Type="Structural" >

<INDEXES>
<INDEX>
<TagName>ORACLE</TagName>
<TagType>REGULAR</TagType>
<Key>ORACLE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>SQLSERVER</TagName>
<TagType>REGULAR</TagType>
<Key>SQLSERVER</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>
</IndexFile>

</IndexFiles>


<RECORDS>
Expand Down
31 changes: 17 additions & 14 deletions data/_keywords.db2
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,23 @@
</FIELD>
</FIELDS>


<indexFile>_KEYWORDS.CDX</indexFile>

<INDEXES>
<INDEX>
<TagName>KEYWORD</TagName>
<TagType>REGULAR</TagType>
<Key>KEYWORD</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>

<IndexFiles>

<IndexFile Type="Structural" >

<INDEXES>
<INDEX>
<TagName>KEYWORD</TagName>
<TagType>REGULAR</TagType>
<Key>KEYWORD</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>
</IndexFile>

</IndexFiles>


<RECORDS>
Expand Down
63 changes: 33 additions & 30 deletions data/_typemap.db2
Original file line number Diff line number Diff line change
Expand Up @@ -157,36 +157,39 @@
</FIELD>
</FIELDS>


<indexFile>_TYPEMAP.CDX</indexFile>

<INDEXES>
<INDEX>
<TagName>BOTH</TagName>
<TagType>REGULAR</TagType>
<Key>LOCALTYPE+SERVER</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>LOCALTYPE</TagName>
<TagType>REGULAR</TagType>
<Key>LOCALTYPE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>REMOTETYPE</TagName>
<TagType>REGULAR</TagType>
<Key>REMOTETYPE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>

<IndexFiles>

<IndexFile Type="Structural" >

<INDEXES>
<INDEX>
<TagName>BOTH</TagName>
<TagType>REGULAR</TagType>
<Key>LOCALTYPE+SERVER</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>LOCALTYPE</TagName>
<TagType>REGULAR</TagType>
<Key>LOCALTYPE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
<INDEX>
<TagName>REMOTETYPE</TagName>
<TagType>REGULAR</TagType>
<Key>REMOTETYPE</Key>
<Filter></Filter>
<Order>ASCENDING</Order>
<Collate>MACHINE</Collate>
</INDEX>
</INDEXES>
</IndexFile>

</IndexFiles>


<RECORDS>
Expand Down
3 changes: 1 addition & 2 deletions data/project1.pj2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ _AutoIncrement = "0"


*<BuildProj>
*<.HomeDir = 'D:\VFXDEVELOPMENT\UPSIZINGWIZARD\UPSIZE\' />

FOR EACH loProject IN _VFP.Projects FOXOBJECT
loProject.Close()
Expand All @@ -50,7 +49,7 @@ MODIFY PROJECT 'project1.pjx' NOWAIT NOSHOW NOPROJECTHOOK
loProject = _VFP.Projects('project1.pjx')

WITH loProject.FILES
.ADD('upsize1.dbc') && *< FileMetadata: Type="d" Cpid="0" Timestamp="0" ID="0" ObjRev="0" User="" DevInfo="" />
.ADD('upsize1.dbc') && *< FileMetadata: Type="d" Cpid="0" Timestamp="0" ID="0" ObjRev="0" User="" />
*</BuildProj>

.ITEM('__newproject.f2b').Remove()
Expand Down
Binary file modified upsizingwizard.app
Binary file not shown.
Binary file modified upsizingwizard.pjx
Binary file not shown.

0 comments on commit da2336e

Please sign in to comment.