Skip to content

Commit 2af7e3e

Browse files
committed
Ajusta log SV. #58
1 parent 046fb64 commit 2af7e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/step01ggeohash-api.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ CREATE or replace FUNCTION osmc.sv_afacode_decode_log(
541541
)))::jsonb
542542
FROM
543543
(
544-
SELECT jurisd_local_id, jurisd_base_id, x.abbrev, afa.vbit_to_hBig( afa.hBig_to_vbit(cbits) || natcod.baseh_to_vbit(substring(p_code,2),'16') ) AS hbig
544+
SELECT jurisd_local_id, jurisd_base_id, x.abbrev, afa.vbit_to_hBig( afa.hBig_to_vbit(cbits) || natcod.baseh_to_vbit(substring(lower(p_code),2),'16') ) AS hbig, cbits
545545
FROM osmc.coverage c
546546
LEFT JOIN optim.jurisdiction j ON c.isolabel_ext = j.isolabel_ext
547547
LEFT JOIN mvwjurisdiction_synonym_default_abbrev x ON c.isolabel_ext = x.isolabel_ext

0 commit comments

Comments
 (0)