harryoh / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

code generation is not case sensitive at mysql #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
for example, http://example.com/a generate, but http://example.com/A won't 
generate, and http://example.com/a http://example.com/A will redirect to the 
same URL.

What version of the product are you using? On what operating system?
2.0b3

Please provide any additional information below.
I change some table need add binary property at mysql.

--- test.sql    2010-06-10 10:11:25.582941354 +0800
+++ phurl.sql   2010-06-07 10:31:58.346944251 +0800
@@ -7,9 +7,9 @@

 CREATE TABLE phurl_urls (
   id int(10) unsigned NOT NULL auto_increment,
-  url text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
-  code varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
-  alias varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
+  url text NOT NULL,
+  code varchar(20) NOT NULL default '',
+  alias varchar(20) NOT NULL default '',
   date_added datetime NOT NULL default '0000-00-00 00:00:00',
   PRIMARY KEY  (id),
   UNIQUE KEY code (code),

Original issue reported on code.google.com by renn...@gmail.com on 10 Jun 2010 at 2:26

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 3 Jul 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Fixed in v2 beta 3.1

Original comment by hcblahb...@gmail.com on 3 Jul 2010 at 8:23

GoogleCodeExporter commented 9 years ago
I am sorry ,I write the wrong patch.

--- phurl.sql   2010-06-07 10:31:58.346944251 +0800
+++ test.sql    2010-06-10 10:11:25.582941354 +0800
@@ -7,9 +7,9 @@

 CREATE TABLE phurl_urls (
   id int(10) unsigned NOT NULL auto_increment,
-  url text NOT NULL,
-  code varchar(20) NOT NULL default '',
-  alias varchar(20) NOT NULL default '',
+  url text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
+  code varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
+  alias varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
   date_added datetime NOT NULL default '0000-00-00 00:00:00',
   PRIMARY KEY  (id),
   UNIQUE KEY code (code),

Original comment by renn...@gmail.com on 3 Jul 2010 at 8:53

GoogleCodeExporter commented 9 years ago
issue re-opened as still exists. we are working on this.

Original comment by hcblahb...@gmail.com on 3 Jul 2010 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 3 Jul 2010 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 4 Jul 2010 at 8:27