vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   mysql issue with search feature (https://vborg.vbsupport.ru/showthread.php?t=142670)

VBUsers 03-21-2007 07:20 AM

mysql issue with search feature
 
please let me know why im getting this error please i just upgraded a forum and now cant see why its coming up


Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT searchid FROM vBsearch AS search WHERE userid = 23 AND searchhash = '64534ee4c81dd3739dc498192013c091' AND orderedids = '32,30' AND announceids = '' AND completed = 1;

MySQL Error : Unknown column 'completed' in 'where clause'
Error Number : 1054
Date : Wednesday, March 21st 2007 @ 03:18:53 AM
Script : http://www.prosportsnow.com/search.php?do=getnew
Referrer : http://www.prosportsnow.com/
IP Address : 0000000000
Username : Steve
Classname : vB_Database

Marco van Herwaarden 03-21-2007 08:48 AM

To fix this please run the following query:

[sql]ALTER TABLE vBsearch ADD COLUMN `completed` smallint(5) unsigned NOT NULL default '1';[/sql]

VBUsers 03-21-2007 09:05 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1208629)
To fix this please run the following query:

[sql]ALTER TABLE vBsearch ADD COLUMN `completed` smallint(5) unsigned NOT NULL default '1';[/sql]


thank you worked like a charm.


All times are GMT. The time now is 01:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01050 seconds
  • Memory Usage 1,700KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete