Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

You have an error in your SQL syntax

Questions related to using nuBuilder Forte.
Post Reply
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

You have an error in your SQL syntax

Unread post by ARWEN »

I Installed the latest nuBuilder from sourceforge and just seen that there are hundreds of error message in the debug window.
Deleted all and they keep coming back.

Code: Select all

[0] : 
===USER==========

globeadmin

===PDO MESSAGE=== 

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE 1' at line 2

===SQL=========== 

SELECT 
WHERE 1

===BACK TRACE====

C:\xampp\htdocs\nuBuilder\nuform.php - line 350 (nuRunQuery)

C:\xampp\htdocs\nuBuilder\nuform.php - line 331 (nuBrowseTotals)

C:\xampp\htdocs\nuBuilder\nuapi.php - line 42 (nuGetFormObject)




You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: You have an error in your SQL syntax

Unread post by admin »

ARWEN,

This has been fixed now.


Steven
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: You have an error in your SQL syntax

Unread post by ARWEN »

The error still appears after updating. (open objects form for instance)

Code: Select all

[0] : 
===USER==========

globeadmin

===PDO MESSAGE=== 

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nuBuilder4).___nu15e252f1129acb___' doesn't exist

===SQL=========== 

SELECT SUM(sob_all_type) AS total_0,SUM(sob_input_type) AS total_1,SUM(sob_all_id) AS total_2,SUM(zzzzsys_form_id) AS total_3,SUM(sob_all_label) AS total_4,SUM(sfo_description) AS total_5,SUM(syt_title) AS total_6
 FROM zzzzsys_object JOIN ___nu15e252f1129acb___ ON zzzzsys_object_id = theid JOIN zzzzsys_tab ON zzzzsys_tab_id = sob_all_zzzzsys_tab_id JOIN zzzzsys_form ON zzzzsys_form_id = syt_zzzzsys_form_id
 WHERE 1

===BACK TRACE====

C:\xampp\htdocs\nuBuilder/nuform.php - line 356 (nuRunQuery)

C:\xampp\htdocs\nuBuilder/nuform.php - line 335 (nuBrowseTotals)

C:\xampp\htdocs\nuBuilder/nuapi.php - line 41 (nuGetFormObject)
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: You have an error in your SQL syntax

Unread post by kev1n »

Guys, the error occurs with forms that use a temporary table. At the time the SQL is executed in nuRunQuery(), the temporary table no longer exists.
Post Reply