SQLite ALTER added columns not sticking around (or are they

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dochawk
Posts: 43
Joined: Wed Sep 02, 2009 9:29 pm

SQLite ALTER added columns not sticking around (or are they

Post by dochawk » Fri May 18, 2012 1:03 am

I've set up a loop to check on fieldnames and add them to the SQLite database, to automatically catch new fields of my interface as they are added.

Code: Select all

 put "PRAGMA table_info(dna)" into dCmd
   put revDataFromQuery(tab, cr,theDB,dCmd) into currentFields
 
produces

Code: Select all

0   dnaKey int 1 1
after my creation of the database.

("dnaKey" is indeed what I told it., with

Code: Select all

  put "CREATE TABLE dna(dnaKey int NOT NULL, PRIMARY KEY(dnaKey))" into dCmd
   revExecuteSQL debtorDB, dcmd
  
)

I then tell it

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: SQLite ALTER added columns not sticking around (or are t

Post by shaosean » Fri May 18, 2012 4:19 am

Looks like some of your post got lost somewhere..

dochawk
Posts: 43
Joined: Wed Sep 02, 2009 9:29 pm

Re: SQLite ALTER added columns not sticking around (or are t

Post by dochawk » Fri May 18, 2012 11:40 pm

I set "delete" after the premature transition, but apparently it didn't!

Post Reply