// Run SQL command
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'F=' . basename($F) . ',L=' . $L . ',sql=' . $GLOBALS['last_sql']);
$result = mysql_query($GLOBALS['last_sql'], SQL_GET_LINK())
- or debug_report_bug($F, $L, 'file='. basename($F) . ',line=' . $L . ':mysql_error()=' . mysql_error() . "\n".
-'Query string:' . $GLOBALS['last_sql']);
+ or debug_report_bug($F, $L, 'file='. basename($F) . ',line=' . $L . ':mysql_error()=' . mysql_error() . ',last_query=' . $GLOBALS['last_sql']);
//* DEBUG: */ logDebugMessage($F, $L, 'sql=' . $GLOBALS['last_sql'] . ',affected=' . SQL_AFFECTEDROWS() . ',numRows='.(is_resource($result) ? SQL_NUMROWS($result) : gettype($result)));
// Calculate query time
CREATE TABLE `{?_MYSQL_PREFIX?}_task_system` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`assigned_admin` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
- `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+ `userid` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
`status` ENUM('NEW','OPEN','SOLVED','CLOSED','DELETED') NOT NULL DEFAULT 'NEW',
`task_type` VARCHAR(255) NOT NULL DEFAULT 'FIRST_USER',
`subject` VARCHAR(255) NOT NULL DEFAULT '',