Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Paul D. Mirowsky

Ok, things are narrowing down on this issue.

I have a Query Design view in which I have a field Series set to 134.

I remove the 134 and press enter.

Run Query (F5)

It works.

Add back in 134 to Series field.

It works

Save it and save the database.

Double click on the query to run it.

Result in:


Error code: 1

firebird_sdbc error
*Dynamic SQL Error
*SQL error code = -104
*Invalid usage of boolean expression
caused by
'isc_dsql_prepare'
It appears that the run function is adding an operation that is not in 
Query Design view.


Any suggestions?

Thanks

Paul


On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:

I am receiving the following error when opening a query.


firebird_sdbc error:
*Dynamic SQL Error
*SQL error code = -104
*Invalid usage of boolean expression
caused by
'isc_dsql_prepare'

The table names are: Amps   Volts-High

The two tables involved both have one boolean field each, so I removed 
them from the query. The error still occurs.


I am taking this to mean that there is a boolean comparison happening 
that is not in the SQL generated by Base.


Is this possible?

Thanks

Paul





--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
Before I forget - the files used for to gather these runtime numbers are
found here:
https://gerrit.libreoffice.org/#/admin/projects/benchmark

There are five xls files with an explanation as to what the spreadsheet is
evaluating.

They are 4 years old it looks like but seem to be as good as I've found for
example files for this feature.

Seems to me it might be worthwhile to offer them for download (maybe as a
zip file) and reference that download location in the video and/or
associated posting text.

On Wed, Jan 16, 2019 at 1:06 PM Drew Jensen 
wrote:

> So, can you open that Query definition, the one that raised the error when
> you double clicked on it, in design view and Run it and it works?
>
> Is that what you are saying?
>
> Thanks
>
>
> On Wed, Jan 16, 2019 at 12:17 PM Paul D. Mirowsky 
> wrote:
>
>> Ok, things are narrowing down on this issue.
>>
>> I have a Query Design view in which I have a field Series set to 134.
>>
>> I remove the 134 and press enter.
>>
>> Run Query (F5)
>>
>> It works.
>>
>> Add back in 134 to Series field.
>>
>> It works
>>
>> Save it and save the database.
>>
>> Double click on the query to run it.
>>
>> Result in:
>>
>> > Error code: 1
>> >
>> > firebird_sdbc error
>> > *Dynamic SQL Error
>> > *SQL error code = -104
>> > *Invalid usage of boolean expression
>> > caused by
>> > 'isc_dsql_prepare'
>> It appears that the run function is adding an operation that is not in
>> Query Design view.
>>
>> Any suggestions?
>>
>> Thanks
>>
>> Paul
>>
>>
>> On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:
>> > I am receiving the following error when opening a query.
>> >
>> >> firebird_sdbc error:
>> >> *Dynamic SQL Error
>> >> *SQL error code = -104
>> >> *Invalid usage of boolean expression
>> >> caused by
>> >> 'isc_dsql_prepare'
>> > The table names are: Amps   Volts-High
>> >
>> > The two tables involved both have one boolean field each, so I removed
>> > them from the query. The error still occurs.
>> >
>> > I am taking this to mean that there is a boolean comparison happening
>> > that is not in the SQL generated by Base.
>> >
>> > Is this possible?
>> >
>> > Thanks
>> >
>> > Paul
>> >
>> >
>> >
>>
>> --
>> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
>> Problems?
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
>> Privacy Policy: https://www.documentfoundation.org/privacy
>>
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Paul D. Mirowsky
Found this at 
https://stackoverflow.com/questions/31611233/determine-firebird-version-with-sql-version-2-1


|SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION 
>= 2.1 Only problem is, when run as "Execute SQL Statement" menu item, 
it errors as
1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104 
*Token unknown - line 1, column 50 *. caused by 'isc_dsql_prepare' 
I'm sure it's buried somewhere. Any hints anyone? I am by no means an 
SQL expert, Thank you for being patient. Paul |


On 1/16/2019 2:27 AM, Alexander Thurgood wrote:

Le 16/01/2019 à 00:19, Paul D. Mirowsky a écrit :

Invalid usage of boolean expression


This bug perhaps ?

http://tracker.firebirdsql.org/browse/CORE-5367?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel

Not sure which version of Firebird we are using in LO - 3.0.1 or 3.0.2 ?


Alex



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
Also - if you would prefer you can make this fix with a small basic macro.

If you would rather go that way here is what you do.

Open the Base file in Libreoffice.
From the menu select:  Tools -> Macros -> Organize Dialogs.
On the Organize Dialogs dialog select the 'Libraries' tab.
On this tab there is a drop down list for 'Location'
Pull that down and you will see your ODB file listed, select it.
Click on the button 'New'
Default name should be 'Library1', choose that DO NOT PUT THIS CODE IN THE
STANDARD LIBARARY
With the basic editor open copy and past the following into the editor

Option Explicit
Sub ensureConnection()
Dim DBDocUI as Object
on error resume next
DBDocUI = ThisDatabaseDocument.currentController
if not DBDocUI.isConnected then
DBDocUI.connect
end if
on error goto 0
End Sub

Sub Main
ensureConnection()
ThisDatabaseDocument.DataSource.Settings.ParameterNameSubstitution = true
End Sub

Execute the macro - the property will be updated.

Now you can remove the 'Library 1' basic library you added, it is no longer
needed.

PS the reason for not updating the standard library is that in Libreoffice
once the Standard library is updated with anything it is difficult to drop
it completely and the file, even if you remove all the code, will form then
on act as if it has embedded macros when it doesn't. If you add a library
with a different name however you can remove it and if standard is also
empty at that time it is also removed and the file will open without the
embedded macro complaint.



On Wed, Jan 16, 2019 at 11:42 AM Drew Jensen 
wrote:

> Howdy,
>
> Yes, I have a suggestion - there is a property in the Base file which is
> incorrectly set during the Migration Assistant run and must be fixed. The
> error message looks like this is what is biting you.
>
> The fastest way to fix it is at follows:
> Close the base file and exit LibreOffice.
> Rename the base file from .odb to .zip
> Now open the file with your favorite zip tool.
> You fill find a file named content.xml in the root of the file.
> Open that with a text editor.
> Search for this string: db:parameter-name-substitution="false"
> Edit that so that it reads db:parameter-name-substitution="true"
> Save your changes.
> Close the zip file, it should ask if you want to update the file with the
> change and answer yes.
> Change file name back to .odb and you should be good to go.
>
> Best wishes,
>
> Drew
>
> On Wed, Jan 16, 2019 at 11:27 AM Paul D. Mirowsky 
> wrote:
>
>> Found this at
>>
>> https://stackoverflow.com/questions/31611233/determine-firebird-version-with-sql-version-2-1
>>
>> |SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
>>  >= 2.1 Only problem is, when run as "Execute SQL Statement" menu item,
>> it errors as
>> > 1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104
>> > *Token unknown - line 1, column 50 *. caused by 'isc_dsql_prepare'
>> I'm sure it's buried somewhere. Any hints anyone? I am by no means an
>> SQL expert, Thank you for being patient. Paul |
>>
>> On 1/16/2019 2:27 AM, Alexander Thurgood wrote:
>> > Le 16/01/2019 à 00:19, Paul D. Mirowsky a écrit :
>> >> Invalid usage of boolean expression
>> >
>> > This bug perhaps ?
>> >
>> >
>> http://tracker.firebirdsql.org/browse/CORE-5367?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel
>> >
>> > Not sure which version of Firebird we are using in LO - 3.0.1 or 3.0.2 ?
>> >
>> >
>> > Alex
>> >
>>
>> --
>> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
>> Problems?
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
>> Privacy Policy: https://www.documentfoundation.org/privacy
>>
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
Sorry - that last email wen to the wrong mailing list - please disregard it
here.

On Wed, Jan 16, 2019 at 1:14 PM Drew Jensen 
wrote:

> Before I forget - the files used for to gather these runtime numbers are
> found here:
> https://gerrit.libreoffice.org/#/admin/projects/benchmark
>
> There are five xls files with an explanation as to what the spreadsheet is
> evaluating.
>
> They are 4 years old it looks like but seem to be as good as I've found
> for example files for this feature.
>
> Seems to me it might be worthwhile to offer them for download (maybe as a
> zip file) and reference that download location in the video and/or
> associated posting text.
>
> On Wed, Jan 16, 2019 at 1:06 PM Drew Jensen 
> wrote:
>
>> So, can you open that Query definition, the one that raised the error
>> when you double clicked on it, in design view and Run it and it works?
>>
>> Is that what you are saying?
>>
>> Thanks
>>
>>
>> On Wed, Jan 16, 2019 at 12:17 PM Paul D. Mirowsky <
>> p_mirow...@bentaxna.com> wrote:
>>
>>> Ok, things are narrowing down on this issue.
>>>
>>> I have a Query Design view in which I have a field Series set to 134.
>>>
>>> I remove the 134 and press enter.
>>>
>>> Run Query (F5)
>>>
>>> It works.
>>>
>>> Add back in 134 to Series field.
>>>
>>> It works
>>>
>>> Save it and save the database.
>>>
>>> Double click on the query to run it.
>>>
>>> Result in:
>>>
>>> > Error code: 1
>>> >
>>> > firebird_sdbc error
>>> > *Dynamic SQL Error
>>> > *SQL error code = -104
>>> > *Invalid usage of boolean expression
>>> > caused by
>>> > 'isc_dsql_prepare'
>>> It appears that the run function is adding an operation that is not in
>>> Query Design view.
>>>
>>> Any suggestions?
>>>
>>> Thanks
>>>
>>> Paul
>>>
>>>
>>> On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:
>>> > I am receiving the following error when opening a query.
>>> >
>>> >> firebird_sdbc error:
>>> >> *Dynamic SQL Error
>>> >> *SQL error code = -104
>>> >> *Invalid usage of boolean expression
>>> >> caused by
>>> >> 'isc_dsql_prepare'
>>> > The table names are: Amps   Volts-High
>>> >
>>> > The two tables involved both have one boolean field each, so I removed
>>> > them from the query. The error still occurs.
>>> >
>>> > I am taking this to mean that there is a boolean comparison happening
>>> > that is not in the SQL generated by Base.
>>> >
>>> > Is this possible?
>>> >
>>> > Thanks
>>> >
>>> > Paul
>>> >
>>> >
>>> >
>>>
>>> --
>>> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
>>> Problems?
>>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>>> Posting guidelines + more:
>>> https://wiki.documentfoundation.org/Netiquette
>>> List archive: https://listarchives.libreoffice.org/global/users/
>>> Privacy Policy: https://www.documentfoundation.org/privacy
>>>
>>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
Howdy,

Yes, I have a suggestion - there is a property in the Base file which is
incorrectly set during the Migration Assistant run and must be fixed. The
error message looks like this is what is biting you.

The fastest way to fix it is at follows:
Close the base file and exit LibreOffice.
Rename the base file from .odb to .zip
Now open the file with your favorite zip tool.
You fill find a file named content.xml in the root of the file.
Open that with a text editor.
Search for this string: db:parameter-name-substitution="false"
Edit that so that it reads db:parameter-name-substitution="true"
Save your changes.
Close the zip file, it should ask if you want to update the file with the
change and answer yes.
Change file name back to .odb and you should be good to go.

Best wishes,

Drew

On Wed, Jan 16, 2019 at 11:27 AM Paul D. Mirowsky 
wrote:

> Found this at
>
> https://stackoverflow.com/questions/31611233/determine-firebird-version-with-sql-version-2-1
>
> |SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
>  >= 2.1 Only problem is, when run as "Execute SQL Statement" menu item,
> it errors as
> > 1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104
> > *Token unknown - line 1, column 50 *. caused by 'isc_dsql_prepare'
> I'm sure it's buried somewhere. Any hints anyone? I am by no means an
> SQL expert, Thank you for being patient. Paul |
>
> On 1/16/2019 2:27 AM, Alexander Thurgood wrote:
> > Le 16/01/2019 à 00:19, Paul D. Mirowsky a écrit :
> >> Invalid usage of boolean expression
> >
> > This bug perhaps ?
> >
> >
> http://tracker.firebirdsql.org/browse/CORE-5367?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel
> >
> > Not sure which version of Firebird we are using in LO - 3.0.1 or 3.0.2 ?
> >
> >
> > Alex
> >
>
> --
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
So, can you open that Query definition, the one that raised the error when
you double clicked on it, in design view and Run it and it works?

Is that what you are saying?

Thanks


On Wed, Jan 16, 2019 at 12:17 PM Paul D. Mirowsky 
wrote:

> Ok, things are narrowing down on this issue.
>
> I have a Query Design view in which I have a field Series set to 134.
>
> I remove the 134 and press enter.
>
> Run Query (F5)
>
> It works.
>
> Add back in 134 to Series field.
>
> It works
>
> Save it and save the database.
>
> Double click on the query to run it.
>
> Result in:
>
> > Error code: 1
> >
> > firebird_sdbc error
> > *Dynamic SQL Error
> > *SQL error code = -104
> > *Invalid usage of boolean expression
> > caused by
> > 'isc_dsql_prepare'
> It appears that the run function is adding an operation that is not in
> Query Design view.
>
> Any suggestions?
>
> Thanks
>
> Paul
>
>
> On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:
> > I am receiving the following error when opening a query.
> >
> >> firebird_sdbc error:
> >> *Dynamic SQL Error
> >> *SQL error code = -104
> >> *Invalid usage of boolean expression
> >> caused by
> >> 'isc_dsql_prepare'
> > The table names are: Amps   Volts-High
> >
> > The two tables involved both have one boolean field each, so I removed
> > them from the query. The error still occurs.
> >
> > I am taking this to mean that there is a boolean comparison happening
> > that is not in the SQL generated by Base.
> >
> > Is this possible?
> >
> > Thanks
> >
> > Paul
> >
> >
> >
>
> --
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Robert Großkopf
Hi Paul,

I would remove
>>
>>> "Ions-IM"."Select" = TRUE

and

>>> "Equipment"."Series" = 134

and try the query again.

Both commands are right in the internal Firebird-Database. I could test
it with with LO 6.1.4.2 here. But could be there is something wrong with
the fields ...

Is there another Boolean field part of the query?

You could also send me the database with some dummy-data as private
mail, so I could have a look. Would be good to see the reason for
writing a bug and describe it in Base Handbook.

Regards

Robert
-- 
Homepage: http://robert.familiegrosskopf.de
LibreOffice Community: http://robert.familiegrosskopf.de/map_3


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Paul D. Mirowsky

Hello Drew

I assumed that you are answering the question on error 104.

I changed the file as per your instructions to

db:parameter-name-substitution="true"

, but error 104 is still there.

Do I have to go back to my original file a migrate again with this fix 
or am I fixing


SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
Thanks

Paul

On 1/16/2019 11:42 AM, Drew Jensen wrote:

Howdy,

Yes, I have a suggestion - there is a property in the Base file which is
incorrectly set during the Migration Assistant run and must be fixed. The
error message looks like this is what is biting you.

The fastest way to fix it is at follows:
Close the base file and exit LibreOffice.
Rename the base file from .odb to .zip
Now open the file with your favorite zip tool.
You fill find a file named content.xml in the root of the file.
Open that with a text editor.
Search for this string: db:parameter-name-substitution="false"
Edit that so that it reads db:parameter-name-substitution="true"
Save your changes.
Close the zip file, it should ask if you want to update the file with the
change and answer yes.
Change file name back to .odb and you should be good to go.

Best wishes,

Drew

On Wed, Jan 16, 2019 at 11:27 AM Paul D. Mirowsky 
wrote:


Found this at

https://stackoverflow.com/questions/31611233/determine-firebird-version-with-sql-version-2-1

|SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
  >= 2.1 Only problem is, when run as "Execute SQL Statement" menu item,
it errors as

1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104
*Token unknown - line 1, column 50 *. caused by 'isc_dsql_prepare'

I'm sure it's buried somewhere. Any hints anyone? I am by no means an
SQL expert, Thank you for being patient. Paul |

On 1/16/2019 2:27 AM, Alexander Thurgood wrote:

Le 16/01/2019 à 00:19, Paul D. Mirowsky a écrit :

Invalid usage of boolean expression

This bug perhaps ?



http://tracker.firebirdsql.org/browse/CORE-5367?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel

Not sure which version of Firebird we are using in LO - 3.0.1 or 3.0.2 ?


Alex


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems?
https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Paul D. Mirowsky

When editing the query, it works using RunQuery (F5)

After editing and it is working, I save the Query.

Then clicking on the saved Query from main Query window results in error 
again.


On 1/16/2019 1:06 PM, Drew Jensen wrote:

So, can you open that Query definition, the one that raised the error when
you double clicked on it, in design view and Run it and it works?

Is that what you are saying?

Thanks


On Wed, Jan 16, 2019 at 12:17 PM Paul D. Mirowsky 
wrote:


Ok, things are narrowing down on this issue.

I have a Query Design view in which I have a field Series set to 134.

I remove the 134 and press enter.

Run Query (F5)

It works.

Add back in 134 to Series field.

It works

Save it and save the database.

Double click on the query to run it.

Result in:


Error code: 1

firebird_sdbc error
*Dynamic SQL Error
*SQL error code = -104
*Invalid usage of boolean expression
caused by
'isc_dsql_prepare'

It appears that the run function is adding an operation that is not in
Query Design view.

Any suggestions?

Thanks

Paul


On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:

I am receiving the following error when opening a query.


firebird_sdbc error:
*Dynamic SQL Error
*SQL error code = -104
*Invalid usage of boolean expression
caused by
'isc_dsql_prepare'

The table names are: Amps   Volts-High

The two tables involved both have one boolean field each, so I removed
them from the query. The error still occurs.

I am taking this to mean that there is a boolean comparison happening
that is not in the SQL generated by Base.

Is this possible?

Thanks

Paul




--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems?
https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
Howdy Paul,

No you don't need to go back - the parameter substitution is for problems
with sub forms and now I think you are just dealing with SQL differences
between HSQL and Firebird with regards to how it implements joins in select
statements.

On Wed, Jan 16, 2019 at 2:36 PM Paul D. Mirowsky 
wrote:

> Hello Drew
>
> I assumed that you are answering the question on error 104.
>
> I changed the file as per your instructions to
>
> db:parameter-name-substitution="true"
>
> , but error 104 is still there.
>
> Do I have to go back to my original file a migrate again with this fix
> or am I fixing
>
> SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
> Thanks
>
> Paul
>
> On 1/16/2019 11:42 AM, Drew Jensen wrote:
> > Howdy,
> >
> > Yes, I have a suggestion - there is a property in the Base file which is
> > incorrectly set during the Migration Assistant run and must be fixed. The
> > error message looks like this is what is biting you.
> >
> > The fastest way to fix it is at follows:
> > Close the base file and exit LibreOffice.
> > Rename the base file from .odb to .zip
> > Now open the file with your favorite zip tool.
> > You fill find a file named content.xml in the root of the file.
> > Open that with a text editor.
> > Search for this string: db:parameter-name-substitution="false"
> > Edit that so that it reads db:parameter-name-substitution="true"
> > Save your changes.
> > Close the zip file, it should ask if you want to update the file with the
> > change and answer yes.
> > Change file name back to .odb and you should be good to go.
> >
> > Best wishes,
> >
> > Drew
> >
> > On Wed, Jan 16, 2019 at 11:27 AM Paul D. Mirowsky <
> p_mirow...@bentaxna.com>
> > wrote:
> >
> >> Found this at
> >>
> >>
> https://stackoverflow.com/questions/31611233/determine-firebird-version-with-sql-version-2-1
> >>
> >> |SELECT rdb$get_context('SYSTEM','ENGINE_VERSION')... -- ENGINE_VERSION
> >>   >= 2.1 Only problem is, when run as "Execute SQL Statement" menu item,
> >> it errors as
> >>> 1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104
> >>> *Token unknown - line 1, column 50 *. caused by 'isc_dsql_prepare'
> >> I'm sure it's buried somewhere. Any hints anyone? I am by no means an
> >> SQL expert, Thank you for being patient. Paul |
> >>
> >> On 1/16/2019 2:27 AM, Alexander Thurgood wrote:
> >>> Le 16/01/2019 à 00:19, Paul D. Mirowsky a écrit :
>  Invalid usage of boolean expression
> >>> This bug perhaps ?
> >>>
> >>>
> >>
> http://tracker.firebirdsql.org/browse/CORE-5367?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel
> >>> Not sure which version of Firebird we are using in LO - 3.0.1 or 3.0.2
> ?
> >>>
> >>>
> >>> Alex
> >>>
> >> --
> >> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> >> Problems?
> >> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> >> Posting guidelines + more:
> https://wiki.documentfoundation.org/Netiquette
> >> List archive: https://listarchives.libreoffice.org/global/users/
> >> Privacy Policy: https://www.documentfoundation.org/privacy
> >>
>
> --
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Drew Jensen
On Wed, Jan 16, 2019 at 2:46 PM Paul D. Mirowsky 
wrote:

> When editing the query, it works using RunQuery (F5)
>
> After editing and it is working, I save the Query.
>
> Then clicking on the saved Query from main Query window results in error
> again.
>

IDK on that, haven't seen that particular problem before.

Did you say that the SQL statement will run with Run SQL Direct turned on?





>
> On 1/16/2019 1:06 PM, Drew Jensen wrote:
> > So, can you open that Query definition, the one that raised the error
> when
> > you double clicked on it, in design view and Run it and it works?
> >
> > Is that what you are saying?
> >
> > Thanks
> >
> >
> > On Wed, Jan 16, 2019 at 12:17 PM Paul D. Mirowsky <
> p_mirow...@bentaxna.com>
> > wrote:
> >
> >> Ok, things are narrowing down on this issue.
> >>
> >> I have a Query Design view in which I have a field Series set to 134.
> >>
> >> I remove the 134 and press enter.
> >>
> >> Run Query (F5)
> >>
> >> It works.
> >>
> >> Add back in 134 to Series field.
> >>
> >> It works
> >>
> >> Save it and save the database.
> >>
> >> Double click on the query to run it.
> >>
> >> Result in:
> >>
> >>> Error code: 1
> >>>
> >>> firebird_sdbc error
> >>> *Dynamic SQL Error
> >>> *SQL error code = -104
> >>> *Invalid usage of boolean expression
> >>> caused by
> >>> 'isc_dsql_prepare'
> >> It appears that the run function is adding an operation that is not in
> >> Query Design view.
> >>
> >> Any suggestions?
> >>
> >> Thanks
> >>
> >> Paul
> >>
> >>
> >> On 1/15/2019 6:19 PM, Paul D. Mirowsky wrote:
> >>> I am receiving the following error when opening a query.
> >>>
>  firebird_sdbc error:
>  *Dynamic SQL Error
>  *SQL error code = -104
>  *Invalid usage of boolean expression
>  caused by
>  'isc_dsql_prepare'
> >>> The table names are: Amps   Volts-High
> >>>
> >>> The two tables involved both have one boolean field each, so I removed
> >>> them from the query. The error still occurs.
> >>>
> >>> I am taking this to mean that there is a boolean comparison happening
> >>> that is not in the SQL generated by Base.
> >>>
> >>> Is this possible?
> >>>
> >>> Thanks
> >>>
> >>> Paul
> >>>
> >>>
> >>>
> >> --
> >> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> >> Problems?
> >> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> >> Posting guidelines + more:
> https://wiki.documentfoundation.org/Netiquette
> >> List archive: https://listarchives.libreoffice.org/global/users/
> >> Privacy Policy: https://www.documentfoundation.org/privacy
> >>
>
> --
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Base/Firebird Queries broken

2019-01-16 Thread Robert Großkopf
Hi Paul,

> Ok, things are narrowing down on this issue.
> 
> I have a Query Design view in which I have a field Series set to 134.
> 
> I remove the 134 and press enter.
> 
> Run Query (F5)
> 
> It works.

Save it at this point. Don't switch back. Does this work?

Then try
"Equipment"."Series" = '134'
instead of
"Equipment"."Series" = 134
before.

Regards

Robert
-- 
Homepage: http://robert.familiegrosskopf.de
LibreOffice Community: http://robert.familiegrosskopf.de/map_3


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Re: Base/Firebird Queries broken

2019-01-16 Thread Robert Großkopf
Hi Drew,
> 
> Yes, I have a suggestion - there is a property in the Base file which is
> incorrectly set during the Migration Assistant run and must be fixed. The
> error message looks like this is what is biting you.
> 
> The fastest way to fix it is at follows:
> Close the base file and exit LibreOffice.
> Rename the base file from .odb to .zip
> Now open the file with your favorite zip tool.
> You fill find a file named content.xml in the root of the file.
> Open that with a text editor.
> Search for this string: db:parameter-name-substitution="false"
> Edit that so that it reads db:parameter-name-substitution="true"

Couldn't be the parameter-name-substitution. This bug appears in forms
with subforms, not in a simple query without any parameter-input.

Regards

Robert
-- 
Homepage: http://robert.familiegrosskopf.de
LibreOffice Community: http://robert.familiegrosskopf.de/map_3


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy