File:  [Repository] / FM2SQL / Attic / bla.xml
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Mon Apr 11 13:27:12 2005 UTC (19 years, 2 months ago) by rogo
Branches: MAIN
CVS tags: HEAD
version info print added
quick hack for fieldName Conversion from create statement if select statement contains columnnames pre/post sql command execution works

<?xml version="1.0" encoding="UTF-8"?>
<convert>
  <source>
    <database>
      <url>jdbc:fmpro:http://141.14.237.74:8050</url>
      <user>rogo</user>
      <password>3333</password>
      <delimiter>|</delimiter>
      <mode>convert_temp</mode>
      <usenormantounicodemapper>false</usenormantounicodemapper>
      <table name = "Agenda" layout = "" id = "" indexList ="">
         <select>select * from "Agenda"</select>
      
      </table>
      <table name = "bib_annot" layout = "" id = "ID" indexList ="">
         <select>select * from "bib_annot"</select>
      </table>
    <!--  <table name = "bib_einstein" layout = "" id = "ID" indexList ="">
         <select>select * from "bib_einstein"</select>
      </table>
    -->
    </database>
  </source>

  <destination>
    <database>
      <url>jdbc:postgresql://foxridge/test</url>
      <user>rogo</user>
      <password>3333</password>
      <delimiter>//</delimiter>
      <mode></mode>
      <usenormantounicodemapper>false</usenormantounicodemapper>
      <sqlcommands> 
        <sqlcommand execute="before"> drop table "Blasius";create table "Blasius" 
           ( "title" TEXT, 
               "id" integer, 
               "comment" TEXT, 
               "reference" TEXT, 
               "table" TEXT, 
               "clip" TEXT, 
               "current" TEXT, 
               "tabledisplay" TEXT
             )
          </sqlcommand>
        <sqlcommand execute="after">select * from "Blasius"</sqlcommand>
       </sqlcommands>

    </database>
  </destination>
</convert>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>