Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysqli_sql_exception. error if there are spaces in my user folder name #6904

Closed
DCreati opened this issue Nov 24, 2022 · 4 comments
Closed
Labels
waiting for info Issues or pull requests that need further clarification from the author

Comments

@DCreati
Copy link

DCreati commented Nov 24, 2022

PHP Version

8.1

CodeIgniter4 Version

4.2.10

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MySQL 8.0.31

What happened?

SELECT * FROM 'settings' WHERE 'context' IS NULL
SELECT GET_LOCK('41c409f5e688a472d5fec9021721b373', 300) AS ci_session_lock
SELECT 'data' FROM 'C:\Users\Martin' 'Dovey\Documents\ppj\writable\session' WHERE 'id' = '373rcak46gc9mvvfv9b536jd5gcfsc58' AND 'ip_address' = '::1' 

this query generated this error:
#0 C:\Users\Martin Dovey\Documents\ppj\vendor\codeigniter4\codeigniter4\system\Database\MySQLi\Connection.php(292): mysqli->query()

the problem is that my user folder contains spaces and this prevents the application from executing the code correctly.

Steps to Reproduce

the error reported by app when i start it

Expected Output

the folder "Martin Dovey" is considered as unique and not separate

Anything else?

No response

@DCreati DCreati added the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 24, 2022
@kenjis
Copy link
Member

kenjis commented Nov 25, 2022

Please provide steps how to reproduce.

Do you have the table named C:\Users\Martin Dovey?
Why do you use such a strange table name?

@paulbalandan
Copy link
Member

Why are you using a file path as the table name? WRITABLE . 'session' should only be used for session if you are using the file handler. Otherwise, you must set the correct database table name.

@paulbalandan
Copy link
Member

This looks like a misuse.

@paulbalandan paulbalandan removed the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 25, 2022
@paulbalandan paulbalandan changed the title Bug: mysqli_sql_exception. error if there are spaces in my user folder name mysqli_sql_exception. error if there are spaces in my user folder name Nov 25, 2022
@kenjis kenjis added the waiting for info Issues or pull requests that need further clarification from the author label Nov 26, 2022
@DCreati DCreati closed this as completed Nov 29, 2022
@DCreati DCreati reopened this Nov 29, 2022
@paulbalandan
Copy link
Member

No further info provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for info Issues or pull requests that need further clarification from the author
Projects
None yet
Development

No branches or pull requests

3 participants