Coldfusion 9의 디렉토리에 대한 쿼리가 있습니다.이 코드가 예상되는 결과를 제공하지만 Mac에서는 실행되지 않는 이유는 무엇입니까?cfquery.recordcount는 cfdirectory에서 0을 반환하지만 창에만 있습니다.
<cfoutput>
<cfset fileLocation = "d:/tmp"> <!--- On mac set to /tmp --->
<cfdirectory
action = "list"
directory = "#fileLocation#"
name = "files"
>
Files found #files.recordcount# <br/>
<cfquery name="dir" dbtype="query">
select *
from files
where directory = <cfqueryparam value = "#fileLocation#">
</cfquery>
Query gives #dir.recordcount#
</cfoutput>
두 기계 모두 Coldfusion 10을 실행하며 디렉토리가 존재합니다. 맥의 출력은
Files found 5
Query gives 5
창문
Files found 5
Query gives 0
나는 분명 실종에
입니까?
cfdirectory 바로 다음에 답장을보고 비교 한 후 비교해 보았습니까? –
steve
Windows 버전을 CFDUMP 할 수 있습니까? CF 서비스가 d : \ tmp에서 읽을 권한이 있습니까? – BKK
쿼리 쿼리에서 Windows의 "d : \ temp"와 일치하는 항목을 찾습니다. cfdirectory는 Windows 표기법으로 디렉토리를 반환하므로 d :/temp는 쿼리에서 찾을 수 없습니다. –