diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-07 08:32:43 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-07 08:32:43 +0000 |
commit | b996a7d30d002c160246624c882d8188efd3aa9b (patch) | |
tree | 6ed3e9fc72159147b5474cc2cbbe43dd47fd970c | |
parent | 893b0fbd5c271547726065a461336714d9016dfc (diff) | |
download | brdo-b996a7d30d002c160246624c882d8188efd3aa9b.tar.gz brdo-b996a7d30d002c160246624c882d8188efd3aa9b.tar.bz2 |
#165141 by hswong3i: when inserting values into VARCHAR fields, we should use quotes, even if the values are numbers
-rw-r--r-- | modules/system/system.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 2d5489dd1..9882d4601 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -253,8 +253,8 @@ function system_install() { db_query("INSERT INTO {variable} (name,value) VALUES('theme_default', 's:7:\"garland\";')"); db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' AND name = 'garland'"); - db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 0, 'garland', 1, '')"); - db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 1, 'garland', 1, '')"); + db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', '0', 'garland', 1, '')"); + db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', '1', 'garland', 1, '')"); db_query("INSERT INTO {node_access} VALUES (0, 0, 'all', 1, 0, 0)"); |