Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2006, 01:52 AM
Cagonni Cagonni is offline
 
Join Date: Mar 2006
Location: Turkey
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What is The Problem(s)? :(

Code:
Database error in vBulletin 3.6.0:
Invalid SQL:
  SELECT post.*
  FROM post AS post
  LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
  WHERE threadid = 8
   AND dateline > 1155014895
   AND visible = 1 AND deletionlog.primaryid IS NULL
   AND postid <> 10
  ORDER BY dateline DESC
  LIMIT 1;
MySQL Error  : Column: 'dateline' in where clause is ambiguous
Error Number : 1052
Date         : Wednesday, August 9th 2006 @ 12:28:15 AM
Script       : --
Referrer     : --
IP Address   : xxx.xxx.xxx.xxx
Username     : name
Classname    : vb_database
im boring of this db error
i searched the forum and all the sites about vbulletin.The problem is "Prevent Double Post" they said.I disabled the plugin but the error is continuing..I think My other plugins and products dont give that error.Do Prevent Double Post Plugins tables remained in my database?

Another Question

I cant make two post consecutively.Its not a time problem.After 2 or 3 days from my first posts if there is any post after mine i cant post any message

The Error above quick reply part is

Code:
The following errors occurred when this message was submitted

Okay
But there isnt any error it shows

when I click the "Okay" all it does is go back to the normal quick reply box.

Do You Have Any Ideas With These Problems?
Reply With Quote
  #2  
Old 09-07-2006, 01:57 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The post and deletelog tables both have a 'dateline' column, so you need to specify which one. [sql]SELECT post.*
FROM post AS post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = 8
AND post.dateline > 1155014895
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> 10
ORDER BY post.dateline DESC
LIMIT 1;[/sql]

I'm not sure about the other problem.
Reply With Quote
  #3  
Old 09-07-2006, 02:23 AM
Cagonni Cagonni is offline
 
Join Date: Mar 2006
Location: Turkey
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Database error in vBulletin 3.6.0:

Invalid SQL:

                       SELECT post.*
                       FROM uzakdurpost AS post
                       LEFT JOIN uzakdurdeletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
                       WHERE threadid = 5503
                               AND dateline > 1157509558
                               AND visible = 1 AND deletionlog.primaryid IS NULL
                       ORDER BY dateline DESC
                       LIMIT 1;

MySQL Error  : Column 'dateline' in where clause is ambiguous
Error Number : 1052
Date         : Thursday, September 7th 2006 @ 05:25:58 AM
Script       : http://www.hitportal.net/newreply.php
Referrer     : http://www.hitportal.net/showthread.php?t=5503
IP Address   : xx.xx.xx.xxx
Username     : Cagonni
Classname    : vb_database
This is the mail i read.Your sql code includes

WHERE threadid = 8
AND post.dateline > 1155014895

should i do this for all threadid an post datelines?For example

WHERE threadid = 5503
AND dateline > 1157509558

because this error valid for all my forum categories.
Reply With Quote
  #4  
Old 09-07-2006, 02:26 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Specifying every table for those fields isn't a bad habbit - but you only have to do the ones that are in both tables (such as dateline). I don't understand your question... I'm not sure what you are trying to do.
Reply With Quote
  #5  
Old 09-07-2006, 02:32 AM
Cagonni Cagonni is offline
 
Join Date: Mar 2006
Location: Turkey
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i took approximately 2000 mail like this.I asked

Should i specify every table for those fields? 2000 is not a small number

default vbulletin database tables have those columns but there is no problem.I dont understand
Reply With Quote
  #6  
Old 09-07-2006, 02:43 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin includes the table when specifying the field, which you are not.

If two tables both have the same field name, and you don't tell it which table the field belongs to, it will give you an error like the above.

You can specify the table only for problematic queries like that one. To be safe, you should do it for all of your queries using more than one table.
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10555 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete