projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
dff43bb
)
use Digest::SHA1 for sha1_hex
Justin Hunter [Wed, 27 Jan 2010 07:19:56 +0000 (23:19 -0800)]
lib/SQL/Translator/Producer/SQL/MySQL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Producer/SQL/MySQL.pm
b/lib/SQL/Translator/Producer/SQL/MySQL.pm
index
c1691e3
..
01e9c40
100644
(file)
--- a/
lib/SQL/Translator/Producer/SQL/MySQL.pm
+++ b/
lib/SQL/Translator/Producer/SQL/MySQL.pm
@@
-805,6
+805,7
@@
HEADER_COMMENT
use constant COLLISION_TAG_LENGTH => 8;
method truncate_id_uniquely(Str $desired_name, Int $max_symbol_length) {
+ use Digest::SHA1 qw(sha1_hex);
return $desired_name
unless defined $desired_name && length $desired_name > $max_symbol_length;