dbTalk Databases Forums  

SQL-query crashes server

comp.databases.btrieve comp.databases.btrieve


Discuss SQL-query crashes server in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michale Schwarz
 
Posts: n/a

Default SQL-query crashes server - 08-11-2009 , 08:13 AM






Hi,

I've got a serious problem: The following query reproducibly crashes a
PervasiveSQL-Server:
SELECT
length(sp_titel),
case length(sp_titel)
when 0 then zusatz
else sp_titel
end
FROM
STAMM
WHERE
day(gdatum) = 10 and month(gdatum)=8

STAMM is a view defined as follows (I replaced parts not used in query
with "[...]", otherwise statement would be very large):
CREATE VIEW "STAMM" AS
SELECT [...] "T1" ."ZUSATZ" , [...],"L_1" ."KLARTEXT"
"SP_TITEL" ,[...]
FROM "T_STAMM" "T1" LEFT JOIN "L_CO704" "L_1" ON "T1"
.."SP_TITEL" = "L_1" ."PC__AINC" [...]
WHERE "T1" ."PC__SKZ" = 0

"T_STAMM" and "L_CO704" are tables defined in database. These tables
have been created by an special program with "CREATE TABLE [...] IN
DICTIONARY USING [...]" because of corresponding Btrieve files are
filled by another application of us using Btrieves interfaces.
During build of SQL data definition files Btrieve type "String" (0) was
mapped to SQL type "CHAR", although unused trailing characters are
filled with binary zeros by our application. I tried using VARCHAR
instead of CHAR, but then the last character of an full filled
field/column was truncated.

I was able to verify the problem with PervasiveSQL 9.7 and 10.10
(Summit, both workgroup engines).

Does anybody knows how to avoid or solve this problem? There could be an
error message whenever statement is not supported, but IMHO server
should definitively not crash in that case.

Many thanks in advance,
Michael Schwarz

Quote:

Reply With Quote
  #2  
Old   
BtrieveBill
 
Posts: n/a

Default Re: SQL-query crashes server - 08-12-2009 , 04:29 PM






I agree -- it should never cause an engine crash. I recommend
contacting Pervasive directly via their support group and logging a
formal incident. This will get you a bug fix (when it is available).
They charge $250 to log an incident, but if the problem is a bug in
their code (and this looks like it is), then they usually refund it. Be
sure to try v10.20 before calling in, just in case...
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michale Schwarz wrote:
Quote:
Hi,

I've got a serious problem: The following query reproducibly crashes a
PervasiveSQL-Server:
SELECT
length(sp_titel),
case length(sp_titel)
when 0 then zusatz
else sp_titel
end
FROM
STAMM
WHERE
day(gdatum) = 10 and month(gdatum)=8

STAMM is a view defined as follows (I replaced parts not used in query
with "[...]", otherwise statement would be very large):
CREATE VIEW "STAMM" AS
SELECT [...] "T1" ."ZUSATZ" , [...],"L_1" ."KLARTEXT"
"SP_TITEL" ,[...]
FROM "T_STAMM" "T1" LEFT JOIN "L_CO704" "L_1" ON "T1"
.."SP_TITEL" = "L_1" ."PC__AINC" [...]
WHERE "T1" ."PC__SKZ" = 0

"T_STAMM" and "L_CO704" are tables defined in database. These tables
have been created by an special program with "CREATE TABLE [...] IN
DICTIONARY USING [...]" because of corresponding Btrieve files are
filled by another application of us using Btrieves interfaces.
During build of SQL data definition files Btrieve type "String" (0) was
mapped to SQL type "CHAR", although unused trailing characters are
filled with binary zeros by our application. I tried using VARCHAR
instead of CHAR, but then the last character of an full filled
field/column was truncated.

I was able to verify the problem with PervasiveSQL 9.7 and 10.10
(Summit, both workgroup engines).

Does anybody knows how to avoid or solve this problem? There could be an
error message whenever statement is not supported, but IMHO server
should definitively not crash in that case.

Many thanks in advance,
Michael Schwarz

|
|

Reply With Quote
  #3  
Old   
Michael Schwarz
 
Posts: n/a

Default Re: SQL-query crashes server - 08-13-2009 , 04:03 AM



Hi,

@BtrieveBill: Many thanks for fast reaction! As You suggested, I wanted
to try Pervasive v10.20, but I couldn't find it. From Pervasives web
site I downloaded a file named "PSQL-Workgroup-10.20.030.000-win.x86",
but when installing it, it identifies itself as "Pervasive PSQL v10.10
Workgroup (32-bit)". After installation "Control Center" shows version
"10.10.125.000". Is there an other installation file for version 10.20?

My colleague already contacted the pervasive support, who forwarded the
problem to the developers.

Kind regards,
Michael
Quote:
I agree -- it should never cause an engine crash. I recommend
contacting Pervasive directly via their support group and logging a
formal incident. This will get you a bug fix (when it is available).
They charge $250 to log an incident, but if the problem is a bug in
their code (and this looks like it is), then they usually refund it.
Be sure to try v10.20 before calling in, just in case...
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michale Schwarz wrote:
Hi,

I've got a serious problem: The following query reproducibly crashes a
PervasiveSQL-Server:
SELECT
length(sp_titel),
case length(sp_titel)
when 0 then zusatz
else sp_titel
end
FROM
STAMM
WHERE
day(gdatum) = 10 and month(gdatum)=8

STAMM is a view defined as follows (I replaced parts not used in query
with "[...]", otherwise statement would be very large):
CREATE VIEW "STAMM" AS
SELECT [...] "T1" ."ZUSATZ" , [...],"L_1" ."KLARTEXT"
"SP_TITEL" ,[...]
FROM "T_STAMM" "T1" LEFT JOIN "L_CO704" "L_1" ON "T1"
.."SP_TITEL" = "L_1" ."PC__AINC" [...]
WHERE "T1" ."PC__SKZ" = 0

"T_STAMM" and "L_CO704" are tables defined in database. These tables
have been created by an special program with "CREATE TABLE [...] IN
DICTIONARY USING [...]" because of corresponding Btrieve files are
filled by another application of us using Btrieves interfaces.
During build of SQL data definition files Btrieve type "String" (0) was
mapped to SQL type "CHAR", although unused trailing characters are
filled with binary zeros by our application. I tried using VARCHAR
instead of CHAR, but then the last character of an full filled
field/column was truncated.

I was able to verify the problem with PervasiveSQL 9.7 and 10.10
(Summit, both workgroup engines).

Does anybody knows how to avoid or solve this problem? There could be an
error message whenever statement is not supported, but IMHO server
should definitively not crash in that case.

Many thanks in advance,
Michael Schwarz

|
|

Reply With Quote
  #4  
Old   
BtrieveBill
 
Posts: n/a

Default Re: SQL-query crashes server - 08-14-2009 , 11:08 AM



That is the FULL install file, which will NOT properly patch your 10.10
solution. Two options:
1) Remove your old engine completely, then reinstall the full download
you have already.
2) Download the WGE patch as a separate file from
http://www.pervasivedb.com/Database/...SP2_Patch.aspx
and update your 10.10 to 10.20 that way.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michael Schwarz wrote:
Quote:
Hi,

@BtrieveBill: Many thanks for fast reaction! As You suggested, I wanted
to try Pervasive v10.20, but I couldn't find it. From Pervasives web
site I downloaded a file named "PSQL-Workgroup-10.20.030.000-win.x86",
but when installing it, it identifies itself as "Pervasive PSQL v10.10
Workgroup (32-bit)". After installation "Control Center" shows version
"10.10.125.000". Is there an other installation file for version 10.20?

My colleague already contacted the pervasive support, who forwarded the
problem to the developers.

Kind regards,
Michael
I agree -- it should never cause an engine crash. I recommend
contacting Pervasive directly via their support group and logging a
formal incident. This will get you a bug fix (when it is available).
They charge $250 to log an incident, but if the problem is a bug in
their code (and this looks like it is), then they usually refund it.
Be sure to try v10.20 before calling in, just in case...
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michale Schwarz wrote:
Hi,

I've got a serious problem: The following query reproducibly crashes a
PervasiveSQL-Server:
SELECT
length(sp_titel),
case length(sp_titel)
when 0 then zusatz
else sp_titel
end
FROM
STAMM
WHERE
day(gdatum) = 10 and month(gdatum)=8

STAMM is a view defined as follows (I replaced parts not used in query
with "[...]", otherwise statement would be very large):
CREATE VIEW "STAMM" AS
SELECT [...] "T1" ."ZUSATZ" , [...],"L_1" ."KLARTEXT"
"SP_TITEL" ,[...]
FROM "T_STAMM" "T1" LEFT JOIN "L_CO704" "L_1" ON "T1"
.."SP_TITEL" = "L_1" ."PC__AINC" [...]
WHERE "T1" ."PC__SKZ" = 0

"T_STAMM" and "L_CO704" are tables defined in database. These tables
have been created by an special program with "CREATE TABLE [...] IN
DICTIONARY USING [...]" because of corresponding Btrieve files are
filled by another application of us using Btrieves interfaces.
During build of SQL data definition files Btrieve type "String" (0) was
mapped to SQL type "CHAR", although unused trailing characters are
filled with binary zeros by our application. I tried using VARCHAR
instead of CHAR, but then the last character of an full filled
field/column was truncated.

I was able to verify the problem with PervasiveSQL 9.7 and 10.10
(Summit, both workgroup engines).

Does anybody knows how to avoid or solve this problem? There could be an
error message whenever statement is not supported, but IMHO server
should definitively not crash in that case.

Many thanks in advance,
Michael Schwarz

|
|

Reply With Quote
  #5  
Old   
Michael Schwarz
 
Posts: n/a

Default Re: SQL-query crashes server - 08-18-2009 , 04:14 AM



Hi,

@BtrieveBill: Thank You for information! I downloaded and installed file
from mentioned site. ControlCenter now identifies itself as "Version
10.20.020.000" but problem persists.
I hope, Pervasive can solve it.

Kind regards,
Michael Schwarz
Quote:
That is the FULL install file, which will NOT properly patch your
10.10 solution. Two options:
1) Remove your old engine completely, then reinstall the full download
you have already.
2) Download the WGE patch as a separate file from
http://www.pervasivedb.com/Database/...SP2_Patch.aspx

and update your 10.10 to 10.20 that way.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michael Schwarz wrote:
Hi,

@BtrieveBill: Many thanks for fast reaction! As You suggested, I wanted
to try Pervasive v10.20, but I couldn't find it. From Pervasives web
site I downloaded a file named "PSQL-Workgroup-10.20.030.000-win.x86",
but when installing it, it identifies itself as "Pervasive PSQL v10.10
Workgroup (32-bit)". After installation "Control Center" shows version
"10.10.125.000". Is there an other installation file for version 10.20?

My colleague already contacted the pervasive support, who forwarded the
problem to the developers.

Kind regards,
Michael
I agree -- it should never cause an engine crash. I recommend
contacting Pervasive directly via their support group and logging a
formal incident. This will get you a bug fix (when it is available).
They charge $250 to log an incident, but if the problem is a bug in
their code (and this looks like it is), then they usually refund it.
Be sure to try v10.20 before calling in, just in case...
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive Training - October 2009 in Chicago ***


Michale Schwarz wrote:
Hi,

I've got a serious problem: The following query reproducibly crashes a
PervasiveSQL-Server:
SELECT
length(sp_titel),
case length(sp_titel)
when 0 then zusatz
else sp_titel
end
FROM
STAMM
WHERE
day(gdatum) = 10 and month(gdatum)=8

STAMM is a view defined as follows (I replaced parts not used in query
with "[...]", otherwise statement would be very large):
CREATE VIEW "STAMM" AS
SELECT [...] "T1" ."ZUSATZ" , [...],"L_1" ."KLARTEXT"
"SP_TITEL" ,[...]
FROM "T_STAMM" "T1" LEFT JOIN "L_CO704" "L_1" ON "T1"
.."SP_TITEL" = "L_1" ."PC__AINC" [...]
WHERE "T1" ."PC__SKZ" = 0

"T_STAMM" and "L_CO704" are tables defined in database. These tables
have been created by an special program with "CREATE TABLE [...] IN
DICTIONARY USING [...]" because of corresponding Btrieve files are
filled by another application of us using Btrieves interfaces.
During build of SQL data definition files Btrieve type "String" (0)
was
mapped to SQL type "CHAR", although unused trailing characters are
filled with binary zeros by our application. I tried using VARCHAR
instead of CHAR, but then the last character of an full filled
field/column was truncated.

I was able to verify the problem with PervasiveSQL 9.7 and 10.10
(Summit, both workgroup engines).

Does anybody knows how to avoid or solve this problem? There could
be an
error message whenever statement is not supported, but IMHO server
should definitively not crash in that case.

Many thanks in advance,
Michael Schwarz

|
|

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.