Warning occurs when making reservation

twowheeler - July 23, 2008 - 01:03
Project:Reservation
Version:5.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Trying out the module, and I get this warning.

user warning: Unknown column '$seats' in 'where clause' query: SELECT rbid FROM reservation_reserved WHERE seat in ($seats) AND vid=238 in /var/www/drupal57/includes/database.mysql.inc on line 172.

The setup at the moment is zero tables, 6 rows of chairs and 20 seats per row. This is on drupal 5.8.

#1

twowheeler - July 23, 2008 - 02:13

Maybe I can answer my own question. Looks like you need double quotes instead of single quotes around line 752. Like this:

  if (!db_num_rows(
        db_query(
          "SELECT rbid FROM {reservation_reserved} WHERE seat in ($seats) AND vid=%d",
           $node->vid)
      )

#2

maulwuff - November 11, 2008 - 07:55
Status:active» fixed

thanks for reporting this. It's fixed in HEAD already, but I didn't make a release for it :/
Will be processed in beta3

--project followup subject--

System Message - November 25, 2008 - 08:15

Automatically closed -- issue fixed for two weeks with no activity.

#3

System Message - November 25, 2008 - 08:21
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.