Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Version 4.4.2 - Aud...
 
Notifications
Clear all

Version 4.4.2 - Audit table insert into issue

4 Posts
2 Users
0 Reactions
5,396 Views
(@thakkar)
Posts: 2
New Member
Topic starter
 
[#2031]

Hi there,

I have recently installed projeqtor successfully. I am able to login as well.. However I do see "audit" table insert into query error in logs as below. I believe the issue is with "CONNECTION" field.

Please help me to resolve this issue.

Exception-[42000] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection , lastAccess , duration , idle , requestRefreshParam , requestRefresh' at line 1
2014-10-07 16:01:40 ** ERROR ** For query : insert into audit ( sessionId , auditDay , idUser , userName , platform , browser , browserVersion , userAgent , connection , lastAccess , duration , idle , requestRefreshParam , requestRefreshProject , requestDisconnection ) values ('qr3uv056aim71243dhvajsjro7', '20141007', '1', 'admin', 'Windows', 'Google Chrome', '37.0.2062.124', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36', '2014-10-07 16:01:40', '2014-10-07 16:01:40', '04:30:00', '0', '0', '0', '0')
2014-10-07 16:01:40 ** ERROR ** Strack trace :
2014-10-07 16:01:40 ** ERROR ** #0 Sql->query called at [C:inetpubwwwrootprojeqtormodelpersistenceSqlElement.php:664]
2014-10-07 16:01:40 ** ERROR ** #1 SqlElement->insertSqlElement called at [C:inetpubwwwrootprojeqtormodelpersistenceSqlElement.php:482]
2014-10-07 16:01:40 ** ERROR ** #2 SqlElement->saveSqlElement called at [C:inetpubwwwrootprojeqtormodelpersistenceSqlElement.php:371]
2014-10-07 16:01:40 ** ERROR ** #3 SqlElement->save called at [C:inetpubwwwrootprojeqtormodelAudit.php:146]
2014-10-07 16:01:40 ** ERROR ** #4 Audit->updateAudit called at [C:inetpubwwwrootprojeqtortoolloginCheck.php:246]
2014-10-07 16:01:40 ** ERROR ** #5 loginOk called at [C:inetpubwwwrootprojeqtortoolloginCheck.php:102]

Best regards,

Jigar.


 
Posted : 07 Oct 2014 14H54
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Strange : I just copied Query and tested in on my environments (tested on Windows and Linux in case of case sensitivity issue) and it works fine :silly:

Which version of MySql are you using ?
Do you share your database woth other application ?
Can you check your "audit" table : description and access rights ?


 
Posted : 07 Oct 2014 15H55
(@thakkar)
Posts: 2
New Member
Topic starter
 

Hi,

Thank You for your prompt response.

I am using MySql 5.0.37.
I don't share this server with other application.
Also permission looks good to me.

Just FYI, when I remove 'CONNECTION' column and execute that query; it executes successfully.

Best regards,

Jigar.


 
Posted : 09 Oct 2014 9H05
(@babynus)
Posts: 14952
Member Admin
 

Hi,

You gave me good Hint : CONNECTION is a reserved key work for old patch versions of MySql
http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-version-reference-reservedwords-5-0.html#ftn.idm47128217632976
http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-version-reference-reservedwords-5-1.html#ftn.idm47128217411872

First MySql patch that is not restricted is ... V5.0.38...
Please concider upgrading you MySql patch level (should always be a ggod advise)

I'll have a look for some patch, for next version.


 
Posted : 09 Oct 2014 14H12
Share:

Scroll to Top