[DBTNG + BLOB]: remap {watchdog}.variables

hswong3i - August 28, 2008 - 05:58
Project:Drupal
Version:7.x-dev
Component:watchdog.module
Category:feature request
Priority:critical
Assigned:hswong3i
Status:duplicate
Description

As case mentioned in http://drupal.org/node/147947, this patch remap {watchdog}.variables as BLOB type. Also merge with http://drupal.org/node/300219 for correct schema definition. A SELECT query for dblog_top() is also updated according invalid GROUP BY with BLOB.

MySQL:

  • update.php: pass.
  • INSERT/SELECT (Top * in...): pass.

PostgreSQL:

  • update.php: FAILED. Seems PostgreSQL schema don't handle change field correctly.
  • INSERT: FAILED. Seems db_insert() of PostgreSQL don't handle correctly.

AttachmentSize
watchdog-variables.patch4.72 KB
Testbed results
watchdog-variables.patchfailedFailed: Failed to apply patch. Detailed results

#1

hswong3i - October 9, 2008 - 06:14

Update based on http://drupal.org/node/316095 founding. Revamp BLOB field with nullable.

Tested with MySQL and PostgreSQL. Stand alone simpletest, pass.

AttachmentSize
watchdog-variables-1223486709.patch 4.19 KB
Testbed results
watchdog-variables-1223486709.patchfailedFailed: Failed to apply patch. Detailed results

#2

hswong3i - October 13, 2008 - 07:29

Integrate with progress of http://drupal.org/node/319401.

Tested with MySQL and PostgreSQL, DBLog simpletest all pass.

AttachmentSize
watchdog-variables-1223882705.patch 4.32 KB
Testbed results
watchdog-variables-1223882705.patchfailedFailed: Failed to apply patch. Detailed results

#3

hswong3i - October 14, 2008 - 15:59
Title:Remap field as BLOB: {watchdog}.variables» [DBTNG + BLOB]: remap {watchdog}.variables

Since #316095: [DBTNG + pgsql] db_insert/db_update buggy with empty string input and BLOB field already figure out the solution for PostgreSQL + BLOB + NULL + INSERT/UPDATE bug, this patch is now safe for using both null or nullable BLOB field.

Patch reroll via CVS HEAD. Only change field type from TEXT to BLOB.

P.S. Actually, I would like to add default value for "variables" as it is 'not null' => TRUE by default. But since MySQL will buggy with #300219: [DBTNG]: MySQL should remove TEXT/BLOB default value so I would like to wait and handle this with another issue.

AttachmentSize
dbtng-watchdog-variables-1223999640.patch 4.23 KB
Testbed results
dbtng-watchdog-variables-1223999640.patchfailedFailed: Failed to apply patch. Detailed results

#4

hswong3i - October 30, 2008 - 09:37

According to commit of #300219: [DBTNG]: MySQL should remove TEXT/BLOB default value, patch reroll via CVS HEAD. Tested with MySQL's simpletest.

AttachmentSize
dbtng-watchdog-variables-1225359310.patch 2.71 KB
Testbed results
dbtng-watchdog-variables-1225359310.patchfailedFailed: Invalid PHP syntax. Detailed results

#5

Anonymous (not verified) - November 13, 2008 - 07:03
Status:needs review» needs work

The last submitted patch failed testing.

#6

hswong3i - November 13, 2008 - 10:03
Status:needs work» needs review

Ooops... dblog.install need update. Patch reroll and pass MySQL + simpletest.

AttachmentSize
dbtng-watchdog-variables-1226570535.patch 2.75 KB
Testbed results
dbtng-watchdog-variables-1226570535.patchpassedPassed: 7386 passes, 0 fails, 0 exceptions Detailed results

#7

System Message - November 16, 2008 - 22:05
Status:needs review» needs work

The last submitted patch failed testing.

#8

lilou - November 17, 2008 - 14:26

#9

hswong3i - November 24, 2008 - 18:59
Status:needs review» duplicate

duplicate with #147947: [DBTNG + XDB] Replace some TEXT:BIG with BLOB

 
 

Drupal is a registered trademark of Dries Buytaert.