Ok thanks i will take a look.
Ok thanks i will take a look.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
I have been looking at the issue you reported what you did not say is that this database contains a lot of views. That is causing an issue as some of the views reference tables that have not yet been imported.
The handling of views that have dependent tables which is causing an issue. Difficult to handle as we would need to parse the SQL query in the importer.
Also worth mentioning is that I note that some of he views contain parameter markers that reference external memory variables. Nothing wrong with doing that except it makes it impossible for Lianja to let you visually design anything with those views without you having meddled with setting up memory variables beforehand. That is going to be problematic using these views client server with Lianja SQL Server and also Lianja Cloud Server.
So as things are at the moment you can't import .dbc databases which contain views.
There is an some strange behavior in the database imported as you mentioned and i am looking into it now.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Ok, thanks for letting me know. It's not that I need it imported exactly as is. I may not need views in a Lianja app, right? The problem I encountered was on the ROLL and ROLL_DET tables and on the STYLE and STYLE_DET tables, as explained in the initial posting. The views are less important to me (at least right now).
This has now been fixed in RC1. See attached screenshot.
Thanks for bringing this to my attention.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Did it have anything to do with the table names? Or was it just a coincidence that the tables it happened on both started with the same characters?
No. It was a bug in the importer. Classic VFP bug to do with EXACT string matching. Anyway, it's fixed now.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Well, ok, but ROLL_DET and ROLL match on the first 4 characters and with SET EXACT OFF, ? "ROLL_DET" = "ROLL" returns .T.
Anyway, I'm glad it's fixed. Thanks.
Yes I know. It was something internal that had the logic the wrong way round.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
If views are in a separate DBC and one imported the table DBC 1st could one then import the view DBC ?
In Lianja how would one hand the situation where views need to have parameter markers that reference external memory variables, such as tableName.dDate > ( ? ldDate )
Currently we don't handle importing views from .dbc files.
You would declare the variables in the open trigger for the database.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks